diff options
author | frosch <frosch@openttd.org> | 2013-02-24 16:41:51 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-02-24 16:41:51 +0000 |
commit | 22bb015f3d1f172227a74cb6d9d0bc96378f452a (patch) | |
tree | a4172aa3b01136ea21375fcb88b70b72555dbbff /src/order_base.h | |
parent | 205543f727b5a4e0084c1eceb433eac8fa0a327b (diff) | |
download | openttd-22bb015f3d1f172227a74cb6d9d0bc96378f452a.tar.xz |
(svn r25041) -Remove [FS#3764-ish]: ordered refit with subtypes, since the cases where it worked were corner cases rather than the general case.
Diffstat (limited to 'src/order_base.h')
-rw-r--r-- | src/order_base.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/order_base.h b/src/order_base.h index 82e1371ee..5054a315b 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -42,7 +42,6 @@ private: DestinationID dest; ///< The destination of the order. CargoID refit_cargo; ///< Refit CargoID - byte refit_subtype; ///< Refit subtype public: Order *next; ///< Pointer to next order. If NULL, end of list @@ -72,7 +71,7 @@ public: void Free(); void MakeGoToStation(StationID destination); - void MakeGoToDepot(DepotID destination, OrderDepotTypeFlags order, OrderNonStopFlags non_stop_type = ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS, OrderDepotActionFlags action = ODATF_SERVICE_ONLY, CargoID cargo = CT_NO_REFIT, byte subtype = 0); + void MakeGoToDepot(DepotID destination, OrderDepotTypeFlags order, OrderNonStopFlags non_stop_type = ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS, OrderDepotActionFlags action = ODATF_SERVICE_ONLY, CargoID cargo = CT_NO_REFIT); void MakeGoToWaypoint(StationID destination); void MakeLoading(bool ordered); void MakeLeaveStation(); @@ -124,14 +123,7 @@ public: */ inline CargoID GetRefitCargo() const { return this->refit_cargo; } - /** - * Get the cargo subtype to to refit to. - * @pre IsType(OT_GOTO_DEPOT) || IsType(OT_GOTO_STATION) - * @return the cargo subtype. - */ - inline byte GetRefitSubtype() const { return this->refit_subtype; } - - void SetRefit(CargoID cargo, byte subtype = 0); + void SetRefit(CargoID cargo); /** How must the consist be loaded? */ inline OrderLoadFlags GetLoadType() const { return (OrderLoadFlags)GB(this->flags, 4, 4); } |