Mercurial > hg > openttd
changeset 15494:7c46b98e54b6 draft
(svn r20143) -Codechange: Remove RecalcShipStuff function.
author | terkhen <terkhen@openttd.org> |
---|---|
date | Wed, 14 Jul 2010 12:27:51 +0000 |
parents | 756dd50e46f2 |
children | 9cffefe9d5db |
files | src/ship.h src/ship_cmd.cpp |
diffstat | 2 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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); /**
--- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -292,12 +292,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[] = { {-1, 0}, { 0, -1} @@ -324,7 +318,8 @@ v->vehstatus &= ~VS_HIDDEN; v->cur_speed = 0; - RecalcShipStuff(v); + v->UpdateViewport(false, true); + SetWindowDirty(WC_VEHICLE_DEPOT, v->tile); PlayShipSound(v); VehicleServiceInDepot(v);