(svn r8896) -Fix
Most (i.e. 13 of 15) callers of GetNewVehiclePos() do not care for the return and the others can figure it out by inspecting the information returned in struct GetNewVehiclePosResult. Therefore remove the return value.
This commit is contained in:
@@ -692,7 +692,8 @@ static void ShipController(Vehicle *v)
|
||||
|
||||
BeginVehicleMove(v);
|
||||
|
||||
if (GetNewVehiclePos(v, &gp)) {
|
||||
GetNewVehiclePos(v, &gp);
|
||||
if (gp.old_tile == gp.new_tile) {
|
||||
/* Staying in tile */
|
||||
if (IsShipInDepot(v)) {
|
||||
gp.x = v->x_pos;
|
||||
|
Reference in New Issue
Block a user