summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-25 10:25:25 +0000
committertron <tron@openttd.org>2007-02-25 10:25:25 +0000
commit270e366772236f06c448cb170575422131316b16 (patch)
treeabc5191717ba01b74c3935c96421507302feb34d /src/ship_cmd.cpp
parent5d081ed3509fdcbac388985061bdd9f537a955a0 (diff)
downloadopenttd-270e366772236f06c448cb170575422131316b16.tar.xz
(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.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 74f5554d1..f2b11ea76 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -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;