summaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2019-03-26Codechange: Replaced SmallVector::ErasePreservingOrder(it, count) with ↵Henry Wilson
std::vector::erase()
2019-03-26Codechange: Replaced SmallVector::Find() const with suitable alternativesHenry Wilson
The use of std::none_of in network/core/host.cpp is driven by the non-const comparison operator use by NetworkAddress. A future commit should address the const_casts in that class to ensure const-correctness.
2019-03-26Codechange: Replaced SmallVector::Find() non-const with std::find()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Reset() with std::vector::clear() + ↵Henry Wilson
shrink_to_fit()
2019-03-26Codechange: Replaced SmallVector::Resize() with std::vector::resize()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-26Codechange: Removed SmallVector::operator[]Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
2019-03-26Codechange: [core] Implement SmallVector using std::vectorHenry Wilson
The public and protected interface to SmallVector are unchanged SmallVector now requires that items be default constructible This isn't an issue since some contained items were previously created uninitialized. Temporary default constructors are added to the following structs - SmallPair - SmallStackItem - GRFPresence Where vector<bool> is required, transition immediately to std::vector to avoid returning proxy object references.
2019-03-19Remove: DOS supportPatric Stout
In 10 years there was no active development on DOS. Although it turned out to still work, the FPS was very bad. There is little interest in the current community to look into this. Further more, we like to switch to c++11 functions for threads, which are not implemented by DJGPP, the only current compiler for DOS. Additionally, DOS is the only platform which does not support networking. It is the reason we have tons of #ifdefs to support disabling networking. By removing DOS support, we can both use c++11 functions for threads, and remove all the code related to disabling network. Sadly, this means we have to see DOS go. Of course, if you feel up for the task, simply revert this commit, and implement stub c++11 functions for threads and stub functions for networking. We are more than happy to accept such Pull Request.
2019-03-09Codechange: Add a k-d tree generic data structureNiels Martin Hansen
2019-03-05Fix: warnings when compiling with DJGPPPatric Stout
This was most likely broken for months, if not years.
2019-03-05Fix: warnings when compiling for a recent version of HaikuPatric Stout
This might break older Haiku versions, but it is hard to tell.
2019-03-05Codechange: removed some left-behind __NDS__ referencesPatric Stout
2019-03-05Remove: MorphOS / AmigaOS supportPatric Stout
In 10 years there is no commit to change how MorphOS works, and we have no active maintainer for it. It is unlikely it works in its current state (but not impossible). With the arrival of SDL2 (and removal of SDL), MorphOS is no longer support. There is an SDL2 port for MorphOS, but it is not maintained by upstream SDL2, and nobody can currently test it out. If anyone wants to re-add MorphOS, please do (revert this patch, fix the problems, and create a Pull Request). If you need any help doing so, let us know! It is not that we don't like MorphOS, it is that we don't have anyone fixing the problems :(
2019-02-13Change: Use SlErrorCorrupt() on pool index error when loading a savegame, ↵PeterN
instead of terminating. (#7219)
2019-01-20Fix: Round up deltas for smooth scrolling, so target will be reachedbtzy
2019-01-13Fix: Grammar in a bunch of comments (#7054)nikolas
2018-12-27Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined ↵glx
macro _WIN32
2018-10-31Fix: [NewGRF] Make VA2 operator 11 (ror) behave well-defined when rotating ↵frosch
by 0 bits.
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-06-27Codechange: Silence -Wclass-memaccess warnings with GCC8Charles Pigott
2018-04-30Fix 0165fe1: Native OSX doesn't have a __BYTE_ORDER macro but defines a ↵Michael Lutz
differently named macro.
2018-04-30Fix: Some spelling errors in printed messagesMatthijs Kooijman
2018-04-29Codechange: remove endian_check in favour of __BYTE_ORDER macro (Rubidium) ↵Patric Stout
(#6762)
2018-04-21Fix: Remove need to instantiate SmallStack's pool object by making it a ↵Charles Pigott
singleton method
2018-04-15Codechange: Add functions to insert and extract an element at a specific ↵Michael Lutz
position in a SmallVec.
2016-09-04(svn r27641) -Codechange: Fold the _fios_items file list vector into its own ↵alberth
class.
2015-08-10(svn r27381) -Fix: Warnings due to C++11 requirements for explicit narrowing ↵michi_cc
conversions in initializer lists.
2014-10-28(svn r27049) -Fix (r26482): Fix compilation with --enable-desync-debug.peter1138
2014-07-12(svn r26685) -Fix: Tighten parameter bound checks on GSCargoMonitor ↵alberth
functions, and return -1 on out-of-bound parameters.
2014-06-17(svn r26651) -Fix: make sure an abs is used that supports int64 when using ↵rubidium
abs on those variables
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-02-16(svn r26343) -Fix: Rewrite SmallStack so that it doesn't use a pool and is ↵fonsinchen
reentrant.
2014-02-11(svn r26333) -Fix: Compilation without static_assert.frosch
2014-02-10(svn r26331) -Fix: some inconsistencies regarding link graph (job) IDs.fonsinchen
2013-11-23(svn r26057) -Fix: a number of possibly uninitialised variablesrubidium
2013-10-20(svn r25893) -Fix: Document RandomRange and change misleading parameter name ↵fonsinchen
'max' in random functions.
2013-10-20(svn r25889) -Codechange: Add forgotten file.fonsinchen
2013-10-20(svn r25887) -Fix: Ignore NULL pointers in delete operator of PoolItem.fonsinchen
2013-08-09(svn r25705) -Fix: a number of typos (inspired by ↵rubidium
90c920601c84975acb694f3673e2beb08b013753)
2013-08-05(svn r25685) -Codechange: [OSX] Use non-deprecated functions for byte swapping.michi_cc
2013-06-15(svn r25402) -Fix-ish: Prevent copying of BasePool and WindowDesc, since ↵frosch
they register in static vectors.
2013-06-09(svn r25348) -Add: multimap implementation with guaranteed order between ↵fonsinchen
equal keys
2013-06-09(svn r25347) -Add: function for deterministic approximate divisionfonsinchen
2013-05-19(svn r25256) -Add: small matrix type (like vector, but for matrices) ↵rubidium
(fonsinchen)
2013-02-24(svn r25043) -Change [FS#3764]: Only display subtypes in the refit GUI which ↵frosch
are available for all selected vehicles. Also add a generic list item to refit while keeping the subtypes of individual vehicles.
2013-02-02(svn r24959) -Doc [FS#5459]: that certain parameters need to be within ↵rubidium
certain boundaries
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)