summaryrefslogtreecommitdiff
path: root/src/effectvehicle.cpp
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/effectvehicle.cpp
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/effectvehicle.cpp')
-rw-r--r--src/effectvehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effectvehicle.cpp b/src/effectvehicle.cpp
index 5921cd190..4d8f58acb 100644
--- a/src/effectvehicle.cpp
+++ b/src/effectvehicle.cpp
@@ -603,7 +603,7 @@ EffectVehicle *CreateEffectVehicle(int x, int y, int z, EffectVehicleType type)
v->y_pos = y;
v->z_pos = z;
v->tile = 0;
- v->UpdateDeltaXY(INVALID_DIR);
+ v->UpdateDeltaXY();
v->vehstatus = VS_UNCLICKABLE;
_effect_init_procs[type](v);
@@ -647,7 +647,7 @@ bool EffectVehicle::Tick()
return _effect_tick_procs[this->subtype](this);
}
-void EffectVehicle::UpdateDeltaXY(Direction direction)
+void EffectVehicle::UpdateDeltaXY()
{
this->x_offs = 0;
this->y_offs = 0;