summaryrefslogtreecommitdiff
path: root/src/aircraft.h
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/aircraft.h
parent561d97880d3c2be7d8160f67d18d3e3b85c284e6 (diff)
downloadopenttd-b687ac51ee5e8628ed56319df573c903c0c86ef3.tar.xz
(svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle was deleted
Diffstat (limited to 'src/aircraft.h')
-rw-r--r--src/aircraft.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft.h b/src/aircraft.h
index 52b8c0252..c535cdbe5 100644
--- a/src/aircraft.h
+++ b/src/aircraft.h
@@ -106,7 +106,7 @@ struct Aircraft : public Vehicle {
int GetDisplayMaxSpeed() const { return this->max_speed; }
Money GetRunningCost() const;
bool IsInDepot() const { return (this->vehstatus & VS_HIDDEN) != 0 && IsHangarTile(this->tile); }
- void Tick();
+ bool Tick();
void OnNewDay();
TileIndex GetOrderStationLocation(StationID station);
bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse);