summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2018-05-22 18:43:34 +0100
committerGitHub <noreply@github.com>2018-05-22 18:43:34 +0100
commita07394a63a67e13db4cd583796ebc8e009082944 (patch)
tree19afa5ffe450b7e0ef908fde114326aa34de249d /src/roadveh.h
parent4cebebcf683b079ff010e70b0a0a78c12734933e (diff)
downloadopenttd-a07394a63a67e13db4cd583796ebc8e009082944.tar.xz
Change: Remove direction parameter from Vehicle::UpdateDeltaXY. (#6792)
The value is either unused or always the same as this->direction.
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index b1865fc22..ca069b7ac 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -105,7 +105,7 @@ struct RoadVehicle FINAL : public GroundVehicle<RoadVehicle, VEH_ROAD> {
friend struct GroundVehicle<RoadVehicle, VEH_ROAD>; // GroundVehicle needs to use the acceleration functions defined at RoadVehicle.
void MarkDirty();
- void UpdateDeltaXY(Direction direction);
+ void UpdateDeltaXY();
ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_ROADVEH_INC : EXPENSES_ROADVEH_RUN; }
bool IsPrimaryVehicle() const { return this->IsFrontEngine(); }
void GetImage(Direction direction, EngineImageType image_type, VehicleSpriteSeq *result) const;