(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:
tron
2007-02-25 10:25:25 +00:00
parent 1864d28cb8
commit 696b895b77
4 changed files with 6 additions and 7 deletions

View File

@@ -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;