summaryrefslogtreecommitdiff
path: root/newgrf_engine.c
AgeCommit message (Collapse)Author
2006-08-20(svn r6013) -Fix: some newgrf properties returned the date in the new format ↵rubidium
where the newgrf's expect the original format. Thanks to michi_cc for finding these and providing the initial patch.
2006-08-20(svn r5975) -Cleanup: use ORIGINAL_BASE_YEAR & ORIGINAL_MAX_YEAR where the ↵rubidium
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.
2006-08-16(svn r5926) -Codechange: make _cur_year contain the full year, instead of ↵rubidium
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
2006-08-14(svn r5887) -Cleanup: move date related functions, defines and variables to ↵rubidium
date.[ch] -Cleanup: fix whitespace related coding style issues in date.[ch] -Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-06-23(svn r5346) - Feature: Add 4 new airports. 2 for aircraft, 2 for helicopters.richk
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.
2006-06-22(svn r5338) - NewGRF: add support for vehicle variable 48, vehicle type info ↵peter1138
(more mart3p)
2006-06-22(svn r5337) - NewGRF: pass the engine type to the engine resolver, to allow ↵peter1138
support for variable 7F for unbuilt vehicles (mart3p)
2006-06-22(svn r5336) - NewGRF: draw custom helicopter rotor sprites in vehicle info ↵peter1138
window, ensuring the correct direction is used (inspiration from mart3p)
2006-06-22(svn r5335) - Newgrf: correct spelling of hangarpeter1138
2006-06-20(svn r5320) - NewGRF: make sets using TTDPatch's train reversing ↵peter1138
hack/feature happier (and consistent) by returning 0 for the flag it uses.
2006-06-14(svn r5262) Add symbolic names for the aircraft subtypes. not perfect, but ↵tron
better than raw numbers
2006-05-31(svn r5060) - NewGRF: add support for variable 7F (retrieve GRF parameter) ↵peter1138
for vehicles
2006-05-31(svn r5059) - NewGRF: store a GRFFile pointer reference for each pointer, ↵peter1138
instead of just the GRF ID.
2006-05-30(svn r5047) - NewGRF: fix typo of AIRPORT in enumpeter1138
2006-05-23(svn r4960) - NewGRF: explicitly handle unsupported variables, instead of ↵peter1138
returning -1.
2006-05-19(svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual ↵peter1138
variations
2006-05-18(svn r4902) Newgrf : Introduction of the newgrf_cargo files. belugas
Clearing engine and newgrf_engine from cargo related structures. Apart from moving stuff cargo related, there is nothing really newcargo for now.
2006-05-17(svn r4896) - NewGRF: add support for vehicle property 0x25 (user defined ↵peter1138
data) used by variable 0x42.
2006-05-15(svn r4872) - NewGRF: add support for vehicle variable 0x47 (mart3p)peter1138
2006-05-14(svn r4869) - NewGRF: support setting train list vehicle width to 32 instead ↵peter1138
of 29 pixels, for sets which use 32 pixel long engines/wagons.
2006-05-14(svn r4867) - NewGRF: implement partial support for engine variable 0x42peter1138
2006-05-08(svn r4781) - NewGRF: give _traininfo_vehicle_pitch a proper declarationpeter1138
2006-05-03(svn r4721) - NewGRF: use loading sprites rather than loaded when there is ↵peter1138
no vehicle (fixes issue with purchase list)
2006-05-03(svn r4714) - NewGRF: simplify evaluation of 'real' sprite groups.peter1138
2006-05-03(svn r4708) - NewGRF: fix selection of number of loaded and loading states.peter1138
2006-05-02(svn r4702) - NewGRF: add support for 'special' vehicle callbacks that use a ↵peter1138
different vehicle for parent scope than the first vehicle in the consist.
2006-05-02(svn r4697) - NewGRF: callback IDs can now be 16 bit values.peter1138
2006-05-02(svn r4696) - NewGRF: add support for vehicle variable 0x60, count vehicle ↵peter1138
type occurance.
2006-05-02(svn r4691) - Codechange: don't use unnamed unions as GCC 2.95.ancient won't ↵peter1138
compile it. Needed for our MorphOS user ;)
2006-05-01(svn r4649) - NewGRF: limit helicopter rotor animation frames to the number ↵peter1138
of sprites in the set.
2006-05-01(svn r4644) - NewGRF: support for variable 0x44, aircraft information. (mart3p)peter1138
2006-05-01(svn r4643) - NewGRF: Add support for ttdp aircraft states. This involves ↵peter1138
mapping from our own state. (heavily based on mart3p's code)
2006-05-01(svn r4636) - NewGRF: when dealing with vehicle types other than trains, set ↵peter1138
the parent scope vehicle to be the same as self scope. (Thanks mart3p)
2006-04-30(svn r4632) - NewGRF: support loading of helicopter rotor sprites (mart3p)peter1138
2006-04-30(svn r4629) - NewGRF: constify more code that deals with sprite groups, now ↵peter1138
that ref counting is gone.
2006-04-28(svn r4611) - NewGRF: introduce new vehicle sprite group resolver code. This ↵peter1138
also fixes some known bugs (e.g. the 'Standard Five' in UKRS is now the correct colour)
2006-04-28(svn r4609) - NewGRF: give GetCustomEngineSprite the correct return typepeter1138
2006-04-27(svn r4600) - NewGRF: minor code style tidy uppeter1138
2006-04-26(svn r4583) - NewGRF: Revamp sprite group loading to support advanced ↵peter1138
varadjusts and variable size. These are not yet processed, however.
2006-04-23(svn r4559) - NewGRF: keep a record of which grf an engine is defined in. ↵peter1138
Will be used in the future.
2006-04-22(svn r4529) - Codechange: Use proper naming for hex numbers in debug prints ↵Darkvater
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-21(svn r4510) - NewGRF bounds checking:peter1138
- 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(svn r4500) - NewGRF: When running a callback with no vehicle, use the ↵peter1138
purchase list 'cargo' type first, and then fallback to the default if needed.
2006-04-21(svn r4496) - NewGRF: switch custom engine names from storing a char* to ↵peter1138
using the new StringID based text system. Vehicle name translations now work.
2006-04-20(svn r4486) - NewGRF: Create and use a memory pool to manage sprite groups. ↵peter1138
This reduces the amount of house keeping we do and the chance of memory leaks.
2006-03-31(svn r4198) - NewGRF: Rename GetCallBackResult() to GetVehicleCallback(), as ↵peter1138
other types will exist later, and use separate parameters instead of bitshifting.
2006-03-26(svn r4132) - Missed 3 CargoID'sDarkvater
2006-03-26(svn r4128) - CodeChange: Add proper semantics for CargoID for such ↵Darkvater
variables instead of using the general byte-type.
2006-03-22(svn r4039) - NewGRF: Add support for a few more vehicle variables. These ↵peter1138
are sometimes used for animation of sprites.
2006-03-08(svn r3783) Replace further ints and magic numbers by Direction, ↵tron
DiagDirection and friends