summaryrefslogtreecommitdiff
path: root/src/train.h
AgeCommit message (Collapse)Author
2018-05-22Change: Remove direction parameter from Vehicle::UpdateDeltaXY. (#6792)PeterN
The value is either unused or always the same as this->direction.
2017-03-20(svn r27811) -Change: Remove unused parameters in FreeTrainTrackReservationpeter1138
FreeTrainTrackReservation is always called with INVALID_TILE and INVALID_TRACKDIR as second and third arguments, so remove them and just use those constants instead. (cirdan)
2016-10-16(svn r27666) -Codechange: Pass vehicle sprites around using a struct ↵frosch
VehicleSpriteSeq.
2014-02-07(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity ↵frosch
when they are not supposed to, and truncate cargo appropiately if they are allowed to.
2013-04-13(svn r25185) -Fix [FS#5508]: Remove ambivalent functions CargoList::Empty() ↵frosch
and Count(), and replace them with VehicleCargoList::StoredCount(), TotalCount(), StationCargoList::AvailableCount() and TotalCount(). (fonsinchen)
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-23(svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list ↵michi_cc
sprites. (Based on patch by Eddi)
2012-07-07(svn r24384) -Fix [FS#5188-ish]: Make IsInDepot() functions behave ↵frosch
consistent across vehicle types and add IsChainInDepot instead, if that is what shall be checked.
2012-01-08(svn r23773) -Change: [NewGRF] Update all cached train properties if a train ↵michi_cc
vehicle enters a new railtype.
2011-12-20(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the ↵truebrain
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-12-18(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise ↵smatz
out some indirect calls
2011-11-21(svn r23290) -Fix [FS#2379,FS#3569]: Change the centre of train vehicles to ↵michi_cc
depend on the vehicle length instead of being fixed at 4/8th of the original vehicle length to make sure shortened vehicles don't block tiles they shouldn't block.
2011-11-04(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ ↵rubidium
functions if they return the Z in pixels (like TilePixelHeight)
2011-11-01(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to ↵frosch
draw different sprites on the map and in various GUIs.
2011-02-05(svn r21976) -Doc: Document several crash handling functions.alberth
2011-01-30(svn r21930) -Codechange: Remove unused vehicle GetTypeString() functions.alberth
2011-01-29(svn r21925) -Doc: Doxygen additions and markup corrections to ↵alberth
vehicle-related functions.
2011-01-29(svn r21923) -Codechange: Unify articulated vehicle iteration functions.terkhen
2011-01-26(svn r21911) -Codechange: move tcache.last_speed to gcache.last_speed and ↵rubidium
make SetLastSpeed a function of GroundVehicle
2011-01-21(svn r21883) -Codechange: make UpdateZPosition() faster by not calling ↵smatz
GetSlopeZ() when not needed
2011-01-21(svn r21876) -Codechange: typedef SpecializedVehicleBase and ↵smatz
GroundVehicleBase to reduce typing
2011-01-19(svn r21862) -Codechange: Unify subtype handling between road vehicles and ↵terkhen
trains.
2011-01-19(svn r21859) -Codechange: Move train subtype flags to GroundVehicle.terkhen
2011-01-19(svn r21858) -Codechange: Give more similar names to ArticulatedPart functions.terkhen
2011-01-04(svn r21712) -Change: Tune 'realistic' acceleration even more to make more ↵michi_cc
trains reach their top speed.
2010-12-14(svn r21521) -Codechange: Unify some cached values that were present in both ↵terkhen
road vehicles and trains.
2010-12-13(svn r21504) -Codechange: move the "lost" bit from the train's flags to ↵rubidium
vehicle flags
2010-11-18(svn r21235) -Codechange: Move Train::UpdateVisualEffect to the Vehicle ↵rubidium
class (Hirundo)
2010-11-18(svn r21232) -Codechange: Move cached_vis_effect from the TrainCache to the ↵rubidium
VehicleCache (Hirundo)
2010-11-07(svn r21106) -Change: Tuned realistic acceleration to be a bit more ↵michi_cc
realistic in order to make acceleration "slower", which highlights the differences between vehicle types more.
2010-11-06(svn r21097) -Codechange: Unify cached max speed for all vehicle types.terkhen
2010-11-06(svn r21092) -Codechange: Merge max speed functions.terkhen
2010-10-30(svn r21060) -Doc: Improved wording of comments (mostly by __ln__)alberth
2010-08-15(svn r20505) -Feature [FS#3978]: Allow changing visual effect when changing ↵frosch
railtype.
2010-08-15(svn r20504) -Codechange: Move updating of train's visual effect to separate ↵frosch
function.
2010-08-15(svn r20503) -Fix (r18838): Powered wagons should check the railtype of the ↵frosch
tile they are on, not where the engine is on.
2010-08-02(svn r20302) -Add: Method for getting the air drag of a ground vehicle.terkhen
2010-08-02(svn r20299) -Add: Make trains and road vehicles use a different area value ↵terkhen
to calculate air drag.
2010-07-09(svn r20098) -Fix [FS#3898]: A train reversing in a station would sometimes ↵michi_cc
fail to release its reserved path.
2010-06-21(svn r20005) -Codechange: Enumify force_proceed.frosch
2010-03-06(svn r19342) -Codechange: Move inclination update functions to GroundVehicle.terkhen
2010-03-06(svn r19341) -Codechange: Move GOINGUP/GOINGDOWN flags to GroundVehicle.terkhen
-Codechange: Move GetSlopeResistance to GroundVehicle.
2010-03-06(svn r19339) -Codechange: Move acceleration functions to GroundVehicle.terkhen
2010-03-06(svn r19338) -Codechange: Move the acceleration cache to GroundVehicle.terkhen
2010-03-06(svn r19337) -Codechange: Create the GroundVehicle class.terkhen
2010-03-06(svn r19336) -Codechange: Move rail speed limit to its own function.terkhen
2010-02-10(svn r19090) -Codechange: some comment coding style fixesrubidium
2010-01-31(svn r18972) -Add: [NewGRF] Per-rail type speed limits.peter1138
2010-01-30(svn r18960) -Codechange: Move acceleration-related values to a separated cache.terkhen
2010-01-28(svn r18939) -Codechange [FS#3545]: Move train slope steepness to its own ↵terkhen
function.