summaryrefslogtreecommitdiff
path: root/src/roadveh.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/roadveh.h
parent561d97880d3c2be7d8160f67d18d3e3b85c284e6 (diff)
downloadopenttd-b687ac51ee5e8628ed56319df573c903c0c86ef3.tar.xz
(svn r16376) -Codechange: Vehicle::Tick() now returns false if the vehicle was deleted
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index 31f8e49a8..2cfee9043 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -99,7 +99,7 @@ struct RoadVehicle : public Vehicle {
Money GetRunningCost() const { return RoadVehInfo(this->engine_type)->running_cost * GetPriceByIndex(RoadVehInfo(this->engine_type)->running_cost_class); }
bool IsInDepot() const { return this->u.road.state == RVSB_IN_DEPOT; }
bool IsStoppedInDepot() const;
- void Tick();
+ bool Tick();
void OnNewDay();
TileIndex GetOrderStationLocation(StationID station);
bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse);