diff options
author | truebrain <truebrain@openttd.org> | 2012-01-02 13:44:37 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2012-01-02 13:44:37 +0000 |
commit | 091bc25a90bb68118f7dbd0e4d750de266cbf855 (patch) | |
tree | 77aaea1eca3aa6705991e37d915c3e0aa5e4ce44 /src/ship_cmd.cpp | |
parent | 0d929e877faf9572a80803db382ab973702e02c0 (diff) | |
download | openttd-091bc25a90bb68118f7dbd0e4d750de266cbf855.tar.xz |
(svn r23714) -Codechange: don't mix Viewport with non-viewport code
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 2a65dfcf4..8b72b41f0 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -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; |