Commit Graph

28 Commits (f2e1a315c1aa723360fb12c149aa658b19617cbc)

Author SHA1 Message Date
rubidium 28ea38ae55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium ee45f0fb03 (svn r14935) -Fix [FS#2498]: the new operator may not return NULL, so don't. 16 years ago
rubidium c1ed1866a4 (svn r14547) -Fix: order pool seemed to look full when it was not as it only checked whether it was possible to allocate a new block of pool items instead of checking for free pool items. 16 years ago
rubidium 6e397dd3f0 (svn r14463) -Fix [FS#2348]: small possible chance of desync due to sorting on pointer instead of by (station) index (PhilSophus) 16 years ago
rubidium 1ce0b03bf0 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
rubidium 2b85217bfe (svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code. 16 years ago
rubidium d56827a9a9 (svn r12855) -Codechange: do not use autoptr's for testing whether certain objects can be build, but check it directly in the pool so we do not have to call destructors in the testing phase. Stations still use the autoptr though. 16 years ago
smatz 76eaed68a0 (svn r12599) -Codechange: force AllocateSafeRaw() to be linked to simplify compiler's decisions about inlining 16 years ago
rubidium 8ebdfb258f (svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations. 17 years ago
smatz 12321687d1 (svn r11530) -Codechange: do not update Tpool->first_free_index for PoolItems allocated on stack 17 years ago
rubidium 5ff81aca18 (svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with templates. This gives up to 10% performance increase in games with lots of vehicles. 17 years ago
rubidium 1f73e795e1 (svn r10827) -Fix [FS#1112]: out of bounds access in corner case of list allocations of vehicles. 17 years ago
rubidium 8f719a7b2d (svn r10799) -Fix: only calling QuickFree and not the destructor on pool cleanups might cause memory leaks due to the way C++ works. 17 years ago
rubidium ff2f17d1e8 (svn r10774) -Fix (r10768): obiwan pleased us with a visit. 17 years ago
rubidium 655b2048e5 (svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*. 17 years ago
rubidium 7e9594e0a5 (svn r10768) -Codechange: allow to specify from which index to search for a free pool item. 17 years ago
rubidium 2c9e166e7e (svn r10754) -Fix: MorphOS does not like sizeof in the templated pool item class, so use the item size that is set in the pool. 17 years ago
rubidium 3172f3461d (svn r10752) -Fix: apparantly const on function pointers is ignored. 17 years ago
rubidium 53e6da1752 (svn r10750) -Codechange: make the waypoint struct use the new poolitem class as super class. 17 years ago
rubidium e44c760084 (svn r10747) -Codechange: add a variable that points to some index in the pool that is not beyond the first free pool item. It does not necessarily point to the first free item, but it reduces allocation time as it does not have to start at the first item in the pool to find the first free item. 17 years ago
rubidium 4fd5be7f2a (svn r10746) -Codechange: add a generic superclass for almost all pool items so we do not have to duplicate code for each of the pool item classes and use it for the station and roadstop classes. 17 years ago
rubidium 508ac563a0 (svn r10745) -Codechange: generalize the pool cleanup/initialize functions for stations (in such a manner that they can be used for other pools too). 17 years ago
rubidium 0ab03b835b (svn r10744) -Codechange: make the pool a little more OO, so it can be easier in other places. 17 years ago
belugas 4d86aa2479 (svn r9390) -Documentation : correct Doxygen of comments and @file inclusion. This time, brought to you by the letter O 18 years ago
rubidium 979ccd45ba (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 18 years ago
rubidium 4169bfba06 (svn r9050) -Codechange: Foo(void) -> Foo() 18 years ago
rubidium a7d0cdf95f (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b. 18 years ago
rubidium 013df98f79 (svn r7759) -Merge: makefile rewrite. This merge features:
- A proper ./configure, so everything needs to be configured only once, not for every make.
 - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
 - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
 - Proper support for OSX universal binaries.
 - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
 - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.

Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
18 years ago