Commit Graph

18 Commits (b5fe577523f25765888b2b813107e98e3f8bb069)

Author SHA1 Message Date
truelight 55ab975c36 (svn r6155) -Codechange: split Destroy routine from SpriteGroupPoolCleanBlock
Last change is to prepare for new pool system.
18 years ago
rubidium 29c8097986 (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 b7a3352009 (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 e87e065e41 (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 9fc837ad85 (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 020721565a (svn r5136) Fix various style bugs:
- Trailing whitespace
- Trailing empty lines
- Missing newline at EOF
- Missing svn:eol-style native
18 years ago
peter1138 70c6a0e4c4 (svn r5087) - NewGRF: Fix thinko in returning a calculated callback result 18 years ago
peter1138 1ed3c5778b (svn r4960) - NewGRF: explicitly handle unsupported variables, instead of returning -1. 18 years ago
peter1138 fc3d714621 (svn r4895) - NewGRF: don't allocate memory for any sprite groups until it is actually needed. 18 years ago
peter1138 d2c015cf2f (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 2280caaef3 (svn r4741) - NewGRF: use the correct variable type for the random bit mask 18 years ago
peter1138 f104da53e1 (svn r4714) - NewGRF: simplify evaluation of 'real' sprite groups. 18 years ago
peter1138 49a825fc43 (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 d23e380d6a (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 e7f401897b (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 7aaedf0385 (svn r4594) - NewGRF: introduce the basic sprite group resolver. This code isn't used yet. 18 years ago
peter1138 60cc7337e5 (svn r4583) - NewGRF: Revamp sprite group loading to support advanced varadjusts and variable size. These are not yet processed, however. 18 years ago
peter1138 103a2aa116 (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