summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
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-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
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)
2017-03-20(svn r27809) -Codechange: Improve check in UpdateLevelCrossingpeter1138
In UpdateLevelCrossing, checking if a level crossing is reserved is cheaper than finding trains on it or approaching it, so do it first. (cirdan)
2016-10-16(svn r27667) -Codechange: Add VehicleSpriteSeq::GetBounds and Draw.frosch
2016-10-16(svn r27666) -Codechange: Pass vehicle sprites around using a struct ↵frosch
VehicleSpriteSeq.
2016-10-16(svn r27663) -Codechange: Deduplicate code when rotating crashed vehicles.frosch
2016-05-22(svn r27580) -Fix [FS#6395]: Set date of last service on construction also ↵frosch
for wagons and articulated parts.
2015-10-30(svn r27419) -Fix [FS#6369]: CmdSellRailWagon did not revert all actions ↵frosch
properly when no orderlist could be allocated. (Juanjo)
2015-03-28(svn r27209) -Add: Draw path reservation on the whole bridge, not only on ↵frosch
the bridge heads.
2015-02-01(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ↵frosch
ScaleGUITrad().
2014-10-15(svn r27020) -Cleanup: some coding style consistency improvements (mostly ↵rubidium
spaces)
2014-10-04(svn r26951) -Codechange: Do the GUI-scale dance for vehicle, depot, and ↵peter1138
purchase lists.
2014-09-22(svn r26907) -Codechange: Scale engine purchase list to GUI zoom level for ↵peter1138
multihead engines.
2014-09-20(svn r26863) -Codechange: move a number of Vehicle* functions into the ↵rubidium
Vehicle class
2014-05-01(svn r26546) -Codechange: Make order wait_time, travel_time and max_speed ↵fonsinchen
private
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
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-11-26(svn r26130) -Codechange: add some guards against using invalid image indicesrubidium
2013-11-26(svn r26129) -Fix: remove dead code; it could be made to do what it did, but ↵rubidium
then it would be inconsistent with moving vehicles around
2013-11-26(svn r26126) -Cleanup: remove unneeded check for NULLrubidium
2013-11-17(svn r26026) -Fix (r25648) [FS#5775-ish]: Invalidate vehicle colour palette ↵frosch
again when rearranging consist, reversing, ...
2013-11-08(svn r25955) -Fix [FS#5723]: Train's "force proceed" status gets reset when ↵rubidium
the track on the other side of the tile has a signal (adf88)
2013-11-07(svn r25946) -Add: [NewGRF Debuggnig] Inspecting other vehicles in a chain.frosch
2013-08-25(svn r25744) -Fix (r25648): [NewGRF] Also invalidate vehicle colour palette ↵frosch
when rearranging consists.
2013-08-06(svn r25698) -Fix [FS#5700]: Autoreplace/renew also refits free wagons.frosch
2013-08-04(svn r25648) -Change [FS#5669]: [NewGRF] Invalidate vehicle recolour palette ↵frosch
during (un)loading.
2013-06-04(svn r25319) -Fix [FS#5570]: crash when train with reserved cargo vanishesrubidium
2013-05-19(svn r25259) -Codechange: track capacities and usage of linksrubidium
2013-04-24(svn r25200) -Fix (r24846): The level crossing sound is an ambient sound and ↵michi_cc
not a new year sound.
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-04-08(svn r25167) -Fix [FS#5523] (r24832): Original train and rv acceleration did ↵frosch
no longer respect bridge speed limits.
2013-02-14(svn r24998) -Fix [FS#5137]: Set vehicle's service interval is percent flag ↵rubidium
appropriately on creation (peter1138)
2013-02-14(svn r24994) -Codechange: Replace access to service_interval with accessors ↵rubidium
(peter1138)
2013-01-11(svn r24905) -Feature(ish): Implement station randomisation triggers.peter1138
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-12-23(svn r24846) -Add: Advanced settings to disable certain sound effects.frosch
2012-12-23(svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list ↵michi_cc
sprites. (Based on patch by Eddi)
2012-12-20(svn r24834) -Fix [FS#5396]: The autorefit dropdown in the order GUI wasn't ↵michi_cc
always updated when modifying vehicle consists.
2012-12-20(svn r24833) -Codechange: Replace magic numbers for invalidating ↵michi_cc
vehicle-related windows with an enum.
2012-12-20(svn r24832) -Fix [FS#5397]: [NewGRF] Take bridge speed limits into account ↵michi_cc
for vehicle variable 4C.
2012-12-20(svn r24831) -Fix [FS#5398]: [NewGRF] Incorrect values are better than a ↵michi_cc
crash when a NewGRF queries vehicle variable 4C before vehicle initialisation is completed.
2012-11-12(svn r24713) -Fix [FS#5262]: [NewGRF] Tolerate old NewGRFs returning invalid ↵frosch
values via CB 11.
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-07-07(svn r24382) -Fix: Call Vehicle::IsStoppedInDepot only for the first vehicle ↵frosch
in a chain (i.e. primary vehicle or free wagon).
2012-05-26(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and ↵frosch
NewsFlag instead.
2012-05-26(svn r24282) -Codechange: Add AddVehicleAdviceNewsItem function to ↵frosch
preemptively deduplicate code.
2012-05-14(svn r24246) -Add [FS#5052-ish]: [NewGRF] Variable with the current max ↵michi_cc
speed for vehicles.
2012-03-29(svn r24078) -Fix [FS#5093,FS#5130] (r24071): A fix that breaks all other ↵michi_cc
cases isn't really a fix. Redo it to make sure that reservations of trains entering or exiting depots are properly made and freed.
2012-03-25(svn r24071) -Fix [FS#5093]: Reversing trains while they were entering or ↵michi_cc
leaving a depot could lead to stuck trains.