Commit Graph

31 Commits (2ad6bfefdaeaa06561b1c9196e5bd65d3dd306c3)

Author SHA1 Message Date
peter1138 f104da53e1 (svn r4714) - NewGRF: simplify evaluation of 'real' sprite groups. 18 years ago
peter1138 eafbc33627 (svn r4708) - NewGRF: fix selection of number of loaded and loading states. 18 years ago
peter1138 43451dfbd9 (svn r4702) - NewGRF: add support for 'special' vehicle callbacks that use a different vehicle for parent scope than the first vehicle in the consist. 18 years ago
peter1138 9bb42c1199 (svn r4697) - NewGRF: callback IDs can now be 16 bit values. 18 years ago
peter1138 d7d5789278 (svn r4696) - NewGRF: add support for vehicle variable 0x60, count vehicle type occurance. 18 years ago
peter1138 b945e9249a (svn r4691) - Codechange: don't use unnamed unions as GCC 2.95.ancient won't compile it. Needed for our MorphOS user ;) 18 years ago
peter1138 e3b84cc7f5 (svn r4649) - NewGRF: limit helicopter rotor animation frames to the number of sprites in the set. 18 years ago
peter1138 8cc28230d7 (svn r4644) - NewGRF: support for variable 0x44, aircraft information. (mart3p) 18 years ago
peter1138 85cd7db702 (svn r4643) - NewGRF: Add support for ttdp aircraft states. This involves mapping from our own state. (heavily based on mart3p's code) 18 years ago
peter1138 726e44aa15 (svn r4636) - NewGRF: when dealing with vehicle types other than trains, set the parent scope vehicle to be the same as self scope. (Thanks mart3p) 18 years ago
peter1138 838ea453dc (svn r4632) - NewGRF: support loading of helicopter rotor sprites (mart3p) 18 years ago
peter1138 ea54151de5 (svn r4629) - NewGRF: constify more code that deals with sprite groups, now that ref counting is gone. 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 5b5e274796 (svn r4609) - NewGRF: give GetCustomEngineSprite the correct return type 18 years ago
peter1138 9e18d9098f (svn r4600) - NewGRF: minor code style tidy up 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 d1ef086ce0 (svn r4559) - NewGRF: keep a record of which grf an engine is defined in. Will be used in the future. 18 years ago
Darkvater 0a0b8f22aa (svn r4529) - Codechange: Use proper naming for hex numbers in debug prints eg. 0xF3A6. Use fixed lengths where applicable (newgrf). Unfortunately '%#X' is unusable since it gives 0XFF3 and '%#x' gives 0xff3 while we want 0xFF3 :P 18 years ago
peter1138 112af05a48 (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 e953cfdbc6 (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 a98818cc6d (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 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
peter1138 77d1dafa4f (svn r4198) - NewGRF: Rename GetCallBackResult() to GetVehicleCallback(), as other types will exist later, and use separate parameters instead of bitshifting. 19 years ago
Darkvater f77bb24d93 (svn r4132) - Missed 3 CargoID's 19 years ago
Darkvater e91fa54a15 (svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type. 19 years ago
peter1138 789794812a (svn r4039) - NewGRF: Add support for a few more vehicle variables. These are sometimes used for animation of sprites. 19 years ago
tron 8cfcdaa733 (svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends 19 years ago
peter1138 08c46772fa (svn r3594) - NewGRF: Add support for some vehicle specific properties and a give a debug message for unknown variables. 19 years ago
peter1138 bb016cdff6 (svn r3557) - NewGRF: move callback enums to a new file as more than just engines will use them 19 years ago
peter1138 2d67fc8741 (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 6c28b1cec7 (svn r3524) - Split newgrf features from engine.[ch] into newgrf_engine.[ch], and add the new files to project files. 19 years ago