diff options
author | tron <tron@openttd.org> | 2007-02-25 10:49:13 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-25 10:49:13 +0000 |
commit | 05c6e8f883e06059daa9ea777f8181ff0f2ab8ef (patch) | |
tree | f18ec0cd5e3a04d73bbbf9ddae8c4ee638ee9fc4 /src/ship_cmd.cpp | |
parent | 270e366772236f06c448cb170575422131316b16 (diff) | |
download | openttd-05c6e8f883e06059daa9ea777f8181ff0f2ab8ef.tar.xz |
(svn r8897) -Fix
Change the signature of GetNewVehiclePos():
-void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
+GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index f2b11ea76..d1af28144 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -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)) { |