From 0753669fa75cc6cddabe617478ae8dc45321510c Mon Sep 17 00:00:00 2001 From: terkhen Date: Wed, 14 Jul 2010 12:27:51 +0000 Subject: (svn r20143) -Codechange: Remove RecalcShipStuff function. --- src/ship_cmd.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/ship_cmd.cpp') 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); -- cgit v1.2.3-54-g00ecf