branch | cpp_gui |
changeset 6268 | 4b5241e5dd10 |
parent 6253 | 23983700e3d7 |
child 6285 | 187e3ef04cc9 |
--- a/src/ship_cmd.cpp Tue Feb 27 23:54:28 2007 +0000 +++ b/src/ship_cmd.cpp Wed Feb 28 00:33:40 2007 +0000 @@ -662,7 +662,6 @@ static void ShipController(Vehicle *v) { - GetNewVehiclePosResult gp; uint32 r; const byte *b; Direction dir; @@ -692,7 +691,8 @@ BeginVehicleMove(v); - if (GetNewVehiclePos(v, &gp)) { + GetNewVehiclePosResult gp = GetNewVehiclePos(v); + if (gp.old_tile == gp.new_tile) { /* Staying in tile */ if (IsShipInDepot(v)) { gp.x = v->x_pos;