summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
AgeCommit message (Collapse)Author
2021-05-15Change: Use gender-neutral pronounsrubidium42
2021-02-20Codechange: rename sound ids to make more sense. (#8701)frosch
2021-01-11Fix: don't allow free-wagon-chains to exceed max-train-length (#8533)Patric Stout
This makes no sense, that a free-wagon-chain could be larger than the maximum length of a train, as you cannot put an engine in front of that anyway. And it prevents run-away AIs making very silly long free-wagon-chains.
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-05Fix #7611: keeps news about accidents around after vehicle is cleaned up (#8497)Patric Stout
When a vehicle is cleaned up, all news that points to the news is also removed. This was a bit evil, as it would also remove any news related to crashed, acting like the crash never happened. This left players a bit in the dark what was going on exactly.
2021-01-05Codechange: create MutableSpriteCache to remove the need to cast Vehicle to ↵Matt Kimber
a mutable type in render methods
2021-01-03Fix: GetCurveSpeedLimit needs railtype from current tile (#8466)Andy
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-10Feature: Railtype flags to allow/disallow 90 degree curves. (#7352)Michael Lutz
2019-02-21Fix #7159, e934f09: Waiting time at red one-way signals was too short.Michael Lutz
This is not an exact fix as previously, the wait time was speed/acceleration dependant. This simple fix ignores that and just makes the 'days' from the settings comment to be actually days.
2019-01-31Cleanup: [NPF] Remove unused parameter.J0an Josep
2019-01-31Cleanup: [NPF] Remove unused parameters.J0an Josep
2019-01-12Codechange #5859: Simplify CheckTrainStayInDepot() (#7045)Joan Josep
2019-01-09Fix: Don't increase motion counter while train is waiting at non-path ↵Andy
signals (Author: frosch123) #5877 (#7018)
2018-10-31Codechange: Some more null checksCharles Pigott
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2018-07-19Feature: Framerate display window (#6822)Niels Martin Hansen
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2018-06-14Fix: Prevent ships moving into docks after finishing (un)loading. (#6791)PeterN
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.