diff options
author | PeterN <peter@fuzzle.org> | 2018-05-22 18:43:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 18:43:34 +0100 |
commit | a07394a63a67e13db4cd583796ebc8e009082944 (patch) | |
tree | 19afa5ffe450b7e0ef908fde114326aa34de249d /src/disaster_vehicle.cpp | |
parent | 4cebebcf683b079ff010e70b0a0a78c12734933e (diff) | |
download | openttd-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/disaster_vehicle.cpp')
-rw-r--r-- | src/disaster_vehicle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/disaster_vehicle.cpp b/src/disaster_vehicle.cpp index 98978ddfb..64ebcd3fa 100644 --- a/src/disaster_vehicle.cpp +++ b/src/disaster_vehicle.cpp @@ -164,7 +164,7 @@ DisasterVehicle::DisasterVehicle(int x, int y, Direction direction, DisasterSubT this->direction = direction; this->tile = TileVirtXY(x, y); this->subtype = subtype; - this->UpdateDeltaXY(INVALID_DIR); + this->UpdateDeltaXY(); this->owner = OWNER_NONE; this->image_override = 0; this->current_order.Free(); @@ -973,7 +973,7 @@ void ReleaseDisastersTargetingVehicle(VehicleID vehicle) } } -void DisasterVehicle::UpdateDeltaXY(Direction direction) +void DisasterVehicle::UpdateDeltaXY() { this->x_offs = -1; this->y_offs = -1; |