peter1138
051181f9c2
(svn r6870) - Codechange: (re-)unify the code to retrieve the sprite group for a vehicle.
18 years ago
peter1138
da63942041
(svn r6795) - NewGRF: Add support for cargo-specific wagon overrides.
18 years ago
peter1138
d9a1578cf4
(svn r6756) - Fix: When resolving vehicle groups, only fall back to the default group if the group chosen is undefined, not if it returns a bad result. This fixes some issues with UKRS.
18 years ago
peter1138
8d2bf45123
(svn r6736) - Add a function to get the list position of an engine ID, for use with sorting. This is basically a reversed version of GetRailVehAtPosition()
18 years ago
peter1138
0ad5dbfdb9
(svn r6735) - Codestyle: Just some tidying up...
18 years ago
peter1138
653e7fa548
(svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
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
richk
a832ca51fe
(svn r5346) - Feature: Add 4 new airports. 2 for aircraft, 2 for helicopters.
...
Commuter airport: Small. 5x4. 3 terminals, 2 helipads.
Intercontinental: massive. 9x11. 8 terminals, 2 helipads, 4 runways.
Helidepot: a small heliport with a depot for helis only.
Helistation: a large heliport with 3 helipads and a depot.
18 years ago
peter1138
ea5f3af9b8
(svn r5338) - NewGRF: add support for vehicle variable 48, vehicle type info (more mart3p)
18 years ago
peter1138
158e0e43f2
(svn r5337) - NewGRF: pass the engine type to the engine resolver, to allow support for variable 7F for unbuilt vehicles (mart3p)
18 years ago
peter1138
3753d0b602
(svn r5336) - NewGRF: draw custom helicopter rotor sprites in vehicle info window, ensuring the correct direction is used (inspiration from mart3p)
18 years ago
peter1138
84deeb7847
(svn r5335) - Newgrf: correct spelling of hangar
18 years ago
peter1138
7e7e8a6c6b
(svn r5320) - NewGRF: make sets using TTDPatch's train reversing hack/feature happier (and consistent) by returning 0 for the flag it uses.
18 years ago
tron
d2f6cb9e2d
(svn r5262) Add symbolic names for the aircraft subtypes. not perfect, but better than raw numbers
18 years ago
peter1138
82bb84d6cc
(svn r5060) - NewGRF: add support for variable 7F (retrieve GRF parameter) for vehicles
18 years ago
peter1138
4aa2054b1a
(svn r5059) - NewGRF: store a GRFFile pointer reference for each pointer, instead of just the GRF ID.
18 years ago
peter1138
65c163668a
(svn r5047) - NewGRF: fix typo of AIRPORT in enum
18 years ago
peter1138
ae8f4f8d9a
(svn r4960) - NewGRF: explicitly handle unsupported variables, instead of returning -1.
19 years ago
peter1138
cd6ab6178c
(svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual variations
19 years ago
belugas
a102163239
(svn r4902) Newgrf : Introduction of the newgrf_cargo files.
...
Clearing engine and newgrf_engine from cargo related structures.
Apart from moving stuff cargo related, there is nothing really newcargo for now.
19 years ago
peter1138
5a65e3301e
(svn r4896) - NewGRF: add support for vehicle property 0x25 (user defined data) used by variable 0x42.
19 years ago
peter1138
fa37809eb6
(svn r4872) - NewGRF: add support for vehicle variable 0x47 (mart3p)
19 years ago
peter1138
e29d60b21b
(svn r4869) - NewGRF: support setting train list vehicle width to 32 instead of 29 pixels, for sets which use 32 pixel long engines/wagons.
19 years ago
peter1138
3f28a8cd42
(svn r4867) - NewGRF: implement partial support for engine variable 0x42
19 years ago
peter1138
e33db100b9
(svn r4781) - NewGRF: give _traininfo_vehicle_pitch a proper declaration
19 years ago
peter1138
79f0628139
(svn r4721) - NewGRF: use loading sprites rather than loaded when there is no vehicle (fixes issue with purchase list)
19 years ago
peter1138
4ef1033287
(svn r4714) - NewGRF: simplify evaluation of 'real' sprite groups.
19 years ago
peter1138
d50896be63
(svn r4708) - NewGRF: fix selection of number of loaded and loading states.
19 years ago
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.
19 years ago
peter1138
36a98ba47e
(svn r4697) - NewGRF: callback IDs can now be 16 bit values.
19 years ago
peter1138
26f6659ec0
(svn r4696) - NewGRF: add support for vehicle variable 0x60, count vehicle type occurance.
19 years ago
peter1138
60b3d37dff
(svn r4691) - Codechange: don't use unnamed unions as GCC 2.95.ancient won't compile it. Needed for our MorphOS user ;)
19 years ago
peter1138
8d5d386e77
(svn r4649) - NewGRF: limit helicopter rotor animation frames to the number of sprites in the set.
19 years ago
peter1138
6d1dc477f6
(svn r4644) - NewGRF: support for variable 0x44, aircraft information. (mart3p)
19 years ago
peter1138
f0ea2b0551
(svn r4643) - NewGRF: Add support for ttdp aircraft states. This involves mapping from our own state. (heavily based on mart3p's code)
19 years ago
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)
19 years ago
peter1138
ddbb61199b
(svn r4632) - NewGRF: support loading of helicopter rotor sprites (mart3p)
19 years ago
peter1138
771b9fc75b
(svn r4629) - NewGRF: constify more code that deals with sprite groups, now that ref counting is gone.
19 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)
19 years ago
peter1138
fc91cd8135
(svn r4609) - NewGRF: give GetCustomEngineSprite the correct return type
19 years ago
peter1138
aa1decec70
(svn r4600) - NewGRF: minor code style tidy up
19 years ago
peter1138
2f01c7d990
(svn r4583) - NewGRF: Revamp sprite group loading to support advanced varadjusts and variable size. These are not yet processed, however.
19 years ago
peter1138
7555d8528b
(svn r4559) - NewGRF: keep a record of which grf an engine is defined in. Will be used in the future.
19 years ago
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
19 years ago
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
19 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.
19 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.
19 years ago