(svn r23714) -Codechange: don't mix Viewport with non-viewport code

This commit is contained in:
truebrain
2012-01-02 13:44:37 +00:00
parent 0d929e877f
commit 091bc25a90
6 changed files with 26 additions and 14 deletions

View File

@@ -326,7 +326,7 @@ static bool CheckShipLeaveDepot(Ship *v)
v->vehstatus &= ~VS_HIDDEN;
v->cur_speed = 0;
v->UpdateViewport(false, true);
v->UpdateViewport(true, true);
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
PlayShipSound(v);
@@ -601,6 +601,7 @@ static void ShipController(Ship *v)
v->z_pos = GetSlopePixelZ(gp.x, gp.y);
getout:
VehicleUpdatePosition(v);
v->UpdateViewport(true, true);
return;