(svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle was deleted
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user