(svn r12629) -Codechange: Split VehicleNeedsService() into Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing().
-Fix (r11052): Disable servicing by service-interval if a vehicle has depot orders.
This commit is contained in:
@@ -489,6 +489,21 @@ public:
|
||||
|
||||
bool NeedsAutorenewing(const Player *p) const;
|
||||
|
||||
/**
|
||||
* Check if the vehicle needs to go to a depot in near future (if a opportunity presents itself) for service or replacement.
|
||||
*
|
||||
* @see NeedsAutomaticServicing()
|
||||
* @return true if the vehicle should go to a depot if a opportunity presents itself.
|
||||
*/
|
||||
bool NeedsServicing() const;
|
||||
|
||||
/**
|
||||
* Checks if the current order should be interupted for a service-in-depot-order.
|
||||
* @see NeedsServicing()
|
||||
* @return true if the current order should be interupted.
|
||||
*/
|
||||
bool NeedsAutomaticServicing() const;
|
||||
|
||||
/**
|
||||
* Determine the location for the station where the vehicle goes to next.
|
||||
* Things done for example are allocating slots in a road stop or exact
|
||||
|
Reference in New Issue
Block a user