Do not charge vehicle running costs when waiting in depot due to timetable
See: #202
This commit is contained in:
@@ -584,6 +584,11 @@ public:
|
||||
return this->IsChainInDepot();
|
||||
}
|
||||
|
||||
bool IsWaitingInDepot() const {
|
||||
assert(this == this->First());
|
||||
return this->current_order.IsType(OT_WAITING) && this->IsChainInDepot();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls the tick handler of the vehicle
|
||||
* @return is this vehicle still valid?
|
||||
|
Reference in New Issue
Block a user