summaryrefslogtreecommitdiff
path: root/src/newgrf_engine.cpp
AgeCommit message (Collapse)Author
2008-04-06(svn r12587) -Codechange: unduplicate some code in the Unpack*Order ↵rubidium
functions and move the 'normal' case Pack/Unpack to Order.
2008-04-05(svn r12584) -Codechange: do not access the order type directly.rubidium
2008-03-31(svn r12490) -Codechange: rename engine.h to engine_func.h and remove ↵rubidium
unneeded inclusions of engine.h and/or replace them with engine_type.h.
2008-03-31(svn r12489) -Codechange: split station.h into station_base.h and ↵rubidium
station_func.h.
2008-03-28(svn r12454) -Fix (r12452): incorrect calculation for 'first vehicle in this ↵glx
chain of vehicles with the same ID' (thx DaleStan) -Fix (r12452): wrong loading of random action 2 type 84 for non vehicle (though it shouldn't happen, but who knows ;))
2008-03-27(svn r12452) -Feature: [NewGRF] Add random action 2 type 84. For vehicles only.glx
2008-03-03(svn r12331) -Feature: [NewGRF] vehicle variable FE bit 8glx
2008-03-03(svn r12330) -Feature: [NewGRF] vehicle variable FE bit 5 and 6glx
2008-02-28(svn r12314) -Fix (r4896): Include prop 25 data for all train parts, not ↵peter1138
just those that carry cargo.
2008-02-20(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the ↵smatz
train had negative income -Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
2008-02-18(svn r12180) -Fix: Test purchase list loading/loaded sprites instead of ↵peter1138
unconditionally returning a possibly non-existant sprite.
2008-02-13(svn r12134) -Change: count the number of ticks a vehicle was running this ↵smatz
day to calculate running cost -Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
2008-01-12(svn r11822) -Codechange: Replaced fixed size custom name array. Names are ↵peter1138
now attached to their object directly and there is no limit to the amount of names. -Fix: NewGRF engines could not be renamed.
2008-01-12(svn r11818) -Codechange: split player.h into smaller pieces.rubidium
2008-01-09(svn r11800) -Codechange: move some functions to a more logical location + ↵rubidium
some type safety.
2008-01-09(svn r11799) -Codechange: no need to special-case helicopter rotor 'overrides'peter1138
2008-01-07(svn r11776) -Codechange: more header splittings to reduce the dependencies.rubidium
2008-01-05(svn r11761) -Codechange: Use appropriate variable types for NewGRF engine ↵peter1138
overrides, and adjust scope while there.
2008-01-04(svn r11756) -Fix: Out of bounds access caused if a vehicle's cargo amount ↵peter1138
was higher than its capacity when resolving sprite groups.
2007-12-27(svn r11706) -Codechange: split vehicle.h and remove another bunch of ↵rubidium
useless includes.
2007-12-26(svn r11702) -Codechange: move all date related stuff to date*.rubidium
2007-12-25(svn r11692) -Codechange: move some functions from 'functions.h' to a more ↵rubidium
logical place and remove about 50% of the includes of 'functions.h'
2007-12-25(svn r11691) -Codechange: move+rename helpers.hpp and only include it when ↵rubidium
it is really needed.
2007-11-20(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the ↵skidd13
remaining to fit with the naming style
2007-11-19(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming ↵skidd13
style
2007-11-19(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit ↵skidd13
with the coding style
2007-11-15(svn r11431) -Codechange: [NewGRF] Add support for changing rail vehicle ↵glx
user-defined bit mask (prop 25) via callback 36
2007-11-11(svn r11413) -Fix [FS#1405]: don't use cached override spriteset for callbacksglx
2007-11-11(svn r11411) -Codechange: implement random triggers for houses.rubidium
2007-10-28(svn r11353) -Codechange: add support for newgrf callback 32glx
2007-09-09(svn r11070) -Fix [FS#1217]: due to making an Action2 variable work ↵rubidium
properly, the NewGRF called other code too that wasn't prepared for non-train vehicles.
2007-09-09(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the ↵rubidium
Vehicle::first pointer correctly set.
2007-08-30(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game ↵rubidium
state while being marked const. -Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
2007-08-30(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and ↵rubidium
Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
2007-07-25(svn r10690) -Codechange: use the enum that describes all callback IDs in ↵rubidium
favor of "just" using an untyped integer.
2007-07-05(svn r10443) -Fix: randomizing triggers should be called with callback type ↵peter1138
set to 1
2007-06-22(svn r10266) -Codechange: keep track of the origin, time of travel and ↵rubidium
accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it.
2007-06-21(svn r10246) -Fix (r10297): some forgotten money conversions and truncation ↵rubidium
issues. Thanks to benc for providing the patch.
2007-06-15(svn r10165) -Fix [FS#874]: crash when trying to get the aircraft movement ↵rubidium
state of an aircraft going to a just deleted airport.
2007-06-11(svn r10097) -Feature: Add support for articulated road vehicles, or ↵maedhros
callbacks 11 and 17 for road vehicles for those who prefer the technical explanation.
2007-06-08(svn r10061) -Codechange: [NewGRF] Add common cargo subtype support to ↵peter1138
vehicle var 42
2007-05-15(svn r9841) -Codechange: add a little more type strictness to the vehicle types.rubidium
2007-05-10(svn r9819) -Codechange: Take account of AMED_HOLD in OTTD/TTDP state ↵peter1138
translation (bulb)
2007-05-10(svn r9818) -Codechange: Cache wagon override sprite set whenever consist is ↵peter1138
changed, instead of 'recalculating' it every time it is used or just tested.
2007-05-06(svn r9803) -Feature(tte): support for "curvature info", Action 2 for train, ↵rubidium
variable 45 (mart3p).
2007-04-20(svn r9703) -Codechange: support callback 36 in vehicle purchase listspeter1138
2007-04-20(svn r9702) -Codechange: Add livery support to newgrf vehicle var 43peter1138
2007-04-18(svn r9671) -Codechange: Implement NewGRF callback 36, which allows changing ↵peter1138
of various properties which were previously static. Vehicle max speed and train power/te/running costs are adjustable.
2007-04-17(svn r9662) -Documentation: Doxygen corrections and @file omissionsbelugas
2007-03-21(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.belugas