(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:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user