mirror of https://github.com/OpenTTD/OpenTTD
(svn r20143) -Codechange: Remove RecalcShipStuff function.
parent
8858729ae7
commit
0753669fa7
|
@ -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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue