summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
AgeCommit message (Collapse)Author
2021-09-18Fix: Prevent train reversing when wholly inside a train depot (#9557)Patric Stout
Co-authored-by: Jonathan G Rennison <j.g.rennison@gmail.com>
2021-08-15Fix 2183fd4d: [NewGRF] Use divide instead of right shift for signed numbers. ↵Michael Lutz
(#9480) "For negative a, the value of a >> b is implementation-defined (in most implementations, this performs arithmetic right shift, so that the result remains negative)."
2021-08-15Feature: [NewGRF] Maximum curve speed modifier for rail vehicles (#9346)Vít Šefl
2021-07-09Codechange: Remove FOR_EACH_SET_TRACKglx22
2021-05-29Codechange: Rename window related DeleteXXX to match new behaviourglx22
2021-05-29Codechange: move from C-string to std::string for DoCommandrubidium42
2021-05-27Fix: do not hide parameter by local variable with the same namerubidium42
2021-05-23Fix #9264: Do not attach temporary wagons to free wagon chains when ↵Jonathan G Rennison
autoreplacing
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