From b687ac51ee5e8628ed56319df573c903c0c86ef3 Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 22 May 2009 13:53:14 +0000 Subject: (svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle was deleted --- src/ship_cmd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ship_cmd.cpp') 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. -- cgit v1.2.3-54-g00ecf