1
0
Fork 0

(svn r20143) -Codechange: Remove RecalcShipStuff function.

release/1.1
terkhen 2010-07-14 12:27:51 +00:00
parent 8858729ae7
commit 0753669fa7
2 changed files with 2 additions and 8 deletions

View File

@ -14,7 +14,6 @@
#include "vehicle_base.h" #include "vehicle_base.h"
void RecalcShipStuff(Ship *v);
void GetShipSpriteSize(EngineID engine, uint &width, uint &height); void GetShipSpriteSize(EngineID engine, uint &width, uint &height);
/** /**

View File

@ -292,12 +292,6 @@ void Ship::UpdateDeltaXY(Direction direction)
this->z_extent = 6; 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[] = { static const TileIndexDiffC _ship_leave_depot_offs[] = {
{-1, 0}, {-1, 0},
{ 0, -1} { 0, -1}
@ -324,7 +318,8 @@ static void CheckShipLeaveDepot(Ship *v)
v->vehstatus &= ~VS_HIDDEN; v->vehstatus &= ~VS_HIDDEN;
v->cur_speed = 0; v->cur_speed = 0;
RecalcShipStuff(v); v->UpdateViewport(false, true);
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
PlayShipSound(v); PlayShipSound(v);
VehicleServiceInDepot(v); VehicleServiceInDepot(v);