Commit Graph

18 Commits (110fc94cb539fcb742e8c01ee52e130d4ca9989e)

Author SHA1 Message Date
truelight b3cf0189a3 (svn r6155) -Codechange: split Destroy routine from SpriteGroupPoolCleanBlock
Last change is to prepare for new pool system.
18 years ago
rubidium 2d30e02ba2 (svn r6013) -Fix: some newgrf properties returned the date in the new format where the newgrf's expect the original format. Thanks to michi_cc for finding these and providing the initial patch. 18 years ago
rubidium e159ada7a2 (svn r5975) -Cleanup: use ORIGINAL_BASE_YEAR & ORIGINAL_MAX_YEAR where the functions really depend on the original date format.
-Cleanup: use DAYS_TILL_ORIGINAL_BASE_YEAR where the date variables are in the old date format and conversions are needed.
-Cleanup: replace one (forgotten) instance of uint16 with Date.
18 years ago
rubidium 3cab5f30c0 (svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
18 years ago
rubidium 243872b4fd (svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
18 years ago
tron aada042d57 (svn r5136) Fix various style bugs:
- Trailing whitespace
- Trailing empty lines
- Missing newline at EOF
- Missing svn:eol-style native
18 years ago
peter1138 ce90b70a41 (svn r5087) - NewGRF: Fix thinko in returning a calculated callback result 18 years ago
peter1138 ae8f4f8d9a (svn r4960) - NewGRF: explicitly handle unsupported variables, instead of returning -1. 18 years ago
peter1138 afd69f53f5 (svn r4895) - NewGRF: don't allocate memory for any sprite groups until it is actually needed. 18 years ago
peter1138 8fa9ff068f (svn r4784) - NewGRF: shuffle the mix of signed / unsigned types when dealing with var adjusts. Fixes issues with some station layouts. 18 years ago
peter1138 27e7fbaaa0 (svn r4741) - NewGRF: use the correct variable type for the random bit mask 18 years ago
peter1138 4ef1033287 (svn r4714) - NewGRF: simplify evaluation of 'real' sprite groups. 18 years ago
peter1138 19e3eb6f3c (svn r4616) - NewGRF: when evaluating a variable adjustment, give our value the correct type after rather than before it has been adjusted. 18 years ago
peter1138 7273bd490d (svn r4611) - NewGRF: introduce new vehicle sprite group resolver code. This also fixes some known bugs (e.g. the 'Standard Five' in UKRS is now the correct colour) 18 years ago
peter1138 5b5dec4f55 (svn r4601) - NewGRF: after evalutaing a 'real' group, return the chosen group directly instead of resolving it as only callback and spriteid groups are returned. 18 years ago
peter1138 2f3401b487 (svn r4594) - NewGRF: introduce the basic sprite group resolver. This code isn't used yet. 18 years ago
peter1138 2f01c7d990 (svn r4583) - NewGRF: Revamp sprite group loading to support advanced varadjusts and variable size. These are not yet processed, however. 18 years ago
peter1138 92d8af75db (svn r4486) - NewGRF: Create and use a memory pool to manage sprite groups. This
reduces the amount of house keeping we do and the chance of memory 
leaks.
18 years ago