(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
This commit is contained in:
bjarni
2008-02-23 22:01:55 +00:00
parent e821b3a9b8
commit 089969e1ca
3 changed files with 14 additions and 3 deletions

View File

@@ -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;
};
/**