Commit Graph

13 Commits (db377b973871e8f270a3dd5ba723ed6a7eea8ec5)

Author SHA1 Message Date
peter1138 0b3659b41a (svn r4510) - NewGRF bounds checking:
- check Engine ID is within range
  - don't try setting a vehicle name if the string id is not a valid Engine ID
18 years ago
peter1138 31c3240227 (svn r4500) - NewGRF: When running a callback with no vehicle, use the purchase list 'cargo' type first, and then fallback to the default if needed. 18 years ago
peter1138 ae94d7b26f (svn r4496) - NewGRF: switch custom engine names from storing a char* to using the new StringID based text system. Vehicle name
translations now work.
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
peter1138 a6e1a1d372 (svn r4198) - NewGRF: Rename GetCallBackResult() to GetVehicleCallback(), as other types will exist later, and use separate parameters instead of bitshifting. 19 years ago
Darkvater d7b34a1d4c (svn r4132) - Missed 3 CargoID's 19 years ago
Darkvater d5909f901a (svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type. 19 years ago
peter1138 68ee299e77 (svn r4039) - NewGRF: Add support for a few more vehicle variables. These are sometimes used for animation of sprites. 19 years ago
tron fbe939b31f (svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends 19 years ago
peter1138 6d3d7cdf43 (svn r3594) - NewGRF: Add support for some vehicle specific properties and a give a debug message for unknown variables. 19 years ago
peter1138 ab771e4ff0 (svn r3557) - NewGRF: move callback enums to a new file as more than just engines will use them 19 years ago
peter1138 500a7e6627 (svn r3546) - NewGRF feature: Implement rail vehicle 'property' 0x1A: allows shuffling order of rail vehicle purchase list (and replace vehicle list) 19 years ago
peter1138 b88904f345 (svn r3524) - Split newgrf features from engine.[ch] into newgrf_engine.[ch], and add the new files to project files. 19 years ago