diff options
author | terkhen <terkhen@openttd.org> | 2010-07-14 12:27:51 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2010-07-14 12:27:51 +0000 |
commit | 0753669fa75cc6cddabe617478ae8dc45321510c (patch) | |
tree | e907a129c5d7cfdf3866c9fc30cb10cbf13d4642 | |
parent | 8858729ae79135592ccc8c1babf3321587167a70 (diff) | |
download | openttd-0753669fa75cc6cddabe617478ae8dc45321510c.tar.xz |
(svn r20143) -Codechange: Remove RecalcShipStuff function.
-rw-r--r-- | src/ship.h | 1 | ||||
-rw-r--r-- | src/ship_cmd.cpp | 9 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/ship.h b/src/ship.h index 0a271e637..1c6749576 100644 --- a/src/ship.h +++ b/src/ship.h @@ -14,7 +14,6 @@ #include "vehicle_base.h" -void RecalcShipStuff(Ship *v); void GetShipSpriteSize(EngineID engine, uint &width, uint &height); /** diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index dd999b08c..d231f7a9a 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -292,12 +292,6 @@ void Ship::UpdateDeltaXY(Direction direction) this->z_extent = 6; } -void RecalcShipStuff(Ship *v) -{ - v->UpdateViewport(false, true); - SetWindowDirty(WC_VEHICLE_DEPOT, v->tile); -} - static const TileIndexDiffC _ship_leave_depot_offs[] = { {-1, 0}, { 0, -1} @@ -324,7 +318,8 @@ static void CheckShipLeaveDepot(Ship *v) v->vehstatus &= ~VS_HIDDEN; v->cur_speed = 0; - RecalcShipStuff(v); + v->UpdateViewport(false, true); + SetWindowDirty(WC_VEHICLE_DEPOT, v->tile); PlayShipSound(v); VehicleServiceInDepot(v); |