summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-22 13:53:14 +0000
committersmatz <smatz@openttd.org>2009-05-22 13:53:14 +0000
commitb687ac51ee5e8628ed56319df573c903c0c86ef3 (patch)
tree26a2219b3bac39dd367deb2de9fcbac64570a93d /src/ship_cmd.cpp
parent561d97880d3c2be7d8160f67d18d3e3b85c284e6 (diff)
downloadopenttd-b687ac51ee5e8628ed56319df573c903c0c86ef3.tar.xz
(svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle was deleted
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 17b56965d..d39bcdcbe 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -708,12 +708,14 @@ static void AgeShipCargo(Vehicle *v)
v->cargo.AgeCargo();
}
-void Ship::Tick()
+bool Ship::Tick()
{
if (!(this->vehstatus & VS_STOPPED)) this->running_ticks++;
AgeShipCargo(this);
ShipController(this);
+
+ return true;
}
/** Build a ship.