From 089969e1cac6ebfb8ac14d692d2bfcd09f21ea6a Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 23 Feb 2008 22:01:55 +0000 Subject: (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 --- src/vehicle_base.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vehicle_base.h') 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; }; /** -- cgit v1.2.3-54-g00ecf