(svn r8897) -Fix

Change the signature of GetNewVehiclePos():
-void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
+GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
This commit is contained in:
tron
2007-02-25 10:49:13 +00:00
parent 696b895b77
commit 1ce43c1a37
7 changed files with 23 additions and 37 deletions

View File

@@ -662,7 +662,6 @@ static const byte _ship_subcoord[4][6][3] = {
static void ShipController(Vehicle *v)
{
GetNewVehiclePosResult gp;
uint32 r;
const byte *b;
Direction dir;
@@ -692,7 +691,7 @@ static void ShipController(Vehicle *v)
BeginVehicleMove(v);
GetNewVehiclePos(v, &gp);
GetNewVehiclePosResult gp = GetNewVehiclePos(v);
if (gp.old_tile == gp.new_tile) {
/* Staying in tile */
if (IsShipInDepot(v)) {