Commit Graph

33 Commits

Author SHA1 Message Date
peter1138
e33db100b9 (svn r4781) - NewGRF: give _traininfo_vehicle_pitch a proper declaration 2006-05-08 10:01:34 +00:00
peter1138
79f0628139 (svn r4721) - NewGRF: use loading sprites rather than loaded when there is no vehicle (fixes issue with purchase list) 2006-05-03 20:51:42 +00:00
peter1138
4ef1033287 (svn r4714) - NewGRF: simplify evaluation of 'real' sprite groups. 2006-05-03 15:46:21 +00:00
peter1138
d50896be63 (svn r4708) - NewGRF: fix selection of number of loaded and loading states. 2006-05-03 12:17:02 +00:00
peter1138
a38c8605b0 (svn r4702) - NewGRF: add support for 'special' vehicle callbacks that use a different vehicle for parent scope than the first vehicle in the consist. 2006-05-02 21:42:11 +00:00
peter1138
36a98ba47e (svn r4697) - NewGRF: callback IDs can now be 16 bit values. 2006-05-02 20:44:06 +00:00
peter1138
26f6659ec0 (svn r4696) - NewGRF: add support for vehicle variable 0x60, count vehicle type occurance. 2006-05-02 20:17:17 +00:00
peter1138
60b3d37dff (svn r4691) - Codechange: don't use unnamed unions as GCC 2.95.ancient won't compile it. Needed for our MorphOS user ;) 2006-05-02 18:56:07 +00:00
peter1138
8d5d386e77 (svn r4649) - NewGRF: limit helicopter rotor animation frames to the number of sprites in the set. 2006-05-01 14:30:24 +00:00
peter1138
6d1dc477f6 (svn r4644) - NewGRF: support for variable 0x44, aircraft information. (mart3p) 2006-05-01 12:00:14 +00:00
peter1138
f0ea2b0551 (svn r4643) - NewGRF: Add support for ttdp aircraft states. This involves mapping from our own state. (heavily based on mart3p's code) 2006-05-01 11:35:18 +00:00
peter1138
984a7f808b (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) 2006-05-01 06:38:36 +00:00
peter1138
ddbb61199b (svn r4632) - NewGRF: support loading of helicopter rotor sprites (mart3p) 2006-04-30 18:41:16 +00:00
peter1138
771b9fc75b (svn r4629) - NewGRF: constify more code that deals with sprite groups, now that ref counting is gone. 2006-04-30 18:19:37 +00:00
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) 2006-04-28 20:04:57 +00:00
peter1138
fc91cd8135 (svn r4609) - NewGRF: give GetCustomEngineSprite the correct return type 2006-04-28 19:49:48 +00:00
peter1138
aa1decec70 (svn r4600) - NewGRF: minor code style tidy up 2006-04-27 23:28:56 +00:00
peter1138
2f01c7d990 (svn r4583) - NewGRF: Revamp sprite group loading to support advanced varadjusts and variable size. These are not yet processed, however. 2006-04-26 20:44:28 +00:00
peter1138
7555d8528b (svn r4559) - NewGRF: keep a record of which grf an engine is defined in. Will be used in the future. 2006-04-23 22:25:33 +00:00
Darkvater
5a8d992eaa (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 2006-04-22 13:56:16 +00:00
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
2006-04-21 20:59:04 +00:00
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. 2006-04-21 17:02:51 +00:00
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.
2006-04-21 07:06:31 +00:00
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.
2006-04-20 20:51:57 +00:00
peter1138
a6e1a1d372 (svn r4198) - NewGRF: Rename GetCallBackResult() to GetVehicleCallback(), as other types will exist later, and use separate parameters instead of bitshifting. 2006-03-31 10:14:25 +00:00
Darkvater
d7b34a1d4c (svn r4132) - Missed 3 CargoID's 2006-03-26 22:56:58 +00:00
Darkvater
d5909f901a (svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type. 2006-03-26 22:23:32 +00:00
peter1138
68ee299e77 (svn r4039) - NewGRF: Add support for a few more vehicle variables. These are sometimes used for animation of sprites. 2006-03-22 22:07:53 +00:00
tron
fbe939b31f (svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends 2006-03-08 06:55:33 +00:00
peter1138
6d3d7cdf43 (svn r3594) - NewGRF: Add support for some vehicle specific properties and a give a debug message for unknown variables. 2006-02-12 10:35:51 +00:00
peter1138
ab771e4ff0 (svn r3557) - NewGRF: move callback enums to a new file as more than just engines will use them 2006-02-05 19:46:20 +00:00
peter1138
500a7e6627 (svn r3546) - NewGRF feature: Implement rail vehicle 'property' 0x1A: allows shuffling order of rail vehicle purchase list (and replace vehicle list) 2006-02-04 21:48:46 +00:00
peter1138
b88904f345 (svn r3524) - Split newgrf features from engine.[ch] into newgrf_engine.[ch], and add the new files to project files. 2006-02-03 12:55:21 +00:00