diff options
author | rubidium <rubidium@openttd.org> | 2010-12-26 13:25:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-26 13:25:34 +0000 |
commit | 28f16a732fbcc759c9cceef7c9a160486b37f896 (patch) | |
tree | 59bdebd2d20b864446cb218e1bdac6742cfbf332 /src/vehicle_base.h | |
parent | b06b05c360830efe5a689a9340b1d327f5d45189 (diff) | |
download | openttd-28f16a732fbcc759c9cceef7c9a160486b37f896.tar.xz |
(svn r21644) -Change: keep showing "No orders" when the order list is filled with only automatic orders
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index 2d59c3795..3d956b12b 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -549,6 +549,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), * and that shall not be resetted for the new vehicle. |