Changeset - r15484:b055edb27a71
[Not reviewed]
master
0 2 0
terkhen - 14 years ago 2010-07-14 12:27:51
terkhen@openttd.org
(svn r20143) -Codechange: Remove RecalcShipStuff function.
2 files changed with 2 insertions and 8 deletions:
0 comments (0 inline, 0 general)
src/ship.h
Show inline comments
 
@@ -14,7 +14,6 @@
 

	
 
#include "vehicle_base.h"
 

	
 
void RecalcShipStuff(Ship *v);
 
void GetShipSpriteSize(EngineID engine, uint &width, uint &height);
 

	
 
/**
src/ship_cmd.cpp
Show inline comments
 
@@ -292,12 +292,6 @@ void Ship::UpdateDeltaXY(Direction direc
 
	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);
0 comments (0 inline, 0 general)