(svn r21644) -Change: keep showing "No orders" when the order list is filled with only automatic orders

This commit is contained in:
rubidium
2010-12-26 13:25:34 +00:00
parent b06b05c360
commit 28f16a732f
4 changed files with 31 additions and 9 deletions

View File

@@ -548,6 +548,12 @@ public:
*/
inline VehicleOrderID GetNumOrders() const { return (this->orders.list == NULL) ? 0 : this->orders.list->GetNumOrders(); }
/**
* Get the number of manually added orders this vehicle has.
* @return the number of manually added orders this vehicle has.
*/
inline VehicleOrderID GetNumManualOrders() const { return (this->orders.list == NULL) ? 0 : this->orders.list->GetNumManualOrders(); }
/**
* Copy certain configurations and statistics of a vehicle after successful autoreplace/renew
* The function shall copy everything that cannot be copied by a command (like orders / group etc),