summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
AgeCommit message (Collapse)Author
2021-12-16Codechange: Un-bitstuff vehicle/engine commands.Michael Lutz
2021-12-16Codechange: Un-bitstuff commands taking a ClientID (i.e. CMD_CLIENT_ID).Michael Lutz
2021-12-16Codechange: Template DoCommandP to automagically reflect the parameters of ↵Michael Lutz
the command proc. When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing.
2021-12-16Codechange: Template DoCommand to automagically reflect the parameters of ↵Michael Lutz
the command proc. When finished, this will allow each command handler to take individually different parameters, obliviating the need for bit-packing.
2021-12-16Codechange: Move flags in CommandProc in front of the command arguments.Michael Lutz
2021-12-16Codechange: Let the compile generate the master command table out of ↵Michael Lutz
templated command traits. This is using a non-intrusive type-traits like templated system, which allows compile-time validation that the command table and the command enum match up.
2021-12-16Codechange: Move command arguments to the back of the networked command ↵Michael Lutz
function calls.
2021-12-16Codechange: Move command arguments to the back of the DoCommand function call.Michael Lutz
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)