diff options
author | frosch <frosch@openttd.org> | 2010-02-22 20:36:20 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-02-22 20:36:20 +0000 |
commit | 3222ace3e1f522d8095cc5e1979f98499e2f09fe (patch) | |
tree | a6b8e00360992b8fe5339029d5c418cdcf66042a /src/order_base.h | |
parent | a74b7ecd809e49c8f236edadf1baa3277a5ce080 (diff) | |
download | openttd-3222ace3e1f522d8095cc5e1979f98499e2f09fe.tar.xz |
(svn r19215) -Codechange: Add Order::GetLocation() to deduplicate code.
Diffstat (limited to 'src/order_base.h')
-rw-r--r-- | src/order_base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/order_base.h b/src/order_base.h index e75733a49..3e74f4c79 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -209,6 +209,7 @@ public: inline void SetConditionValue(uint16 value) { SB(this->dest, 0, 11, value); } bool ShouldStopAtStation(const Vehicle *v, StationID station) const; + TileIndex GetLocation(const Vehicle *v) const; /** Checks if this order has travel_time and if needed wait_time set. */ inline bool IsCompletelyTimetabled() const |