diff options
author | bjarni <bjarni@openttd.org> | 2008-02-23 22:01:55 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2008-02-23 22:01:55 +0000 |
commit | 089969e1cac6ebfb8ac14d692d2bfcd09f21ea6a (patch) | |
tree | 749b019a5a21f0d18977297475fb38406c644ebf /src/vehicle_base.h | |
parent | e821b3a9b8cd8525e214f2a0f39c517fbeeb6389 (diff) | |
download | openttd-089969e1cac6ebfb8ac14d692d2bfcd09f21ea6a.tar.xz |
(svn r12230) -Codechange: [autoreplace] made a function to detect if a vehicle needs autorenewing
This will remove duplicated code and ensure that the check is consistent
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 428398d6c..3b5464a9d 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -481,6 +481,8 @@ public: * @return true if there are other vehicles sharing the same order */ inline bool IsOrderListShared() const { return this->next_shared != NULL || this->prev_shared != NULL; }; + + bool NeedsAutorenewing(const Player *p) const; }; /** |