diff options
Diffstat (limited to 'src/order_base.h')
-rw-r--r-- | src/order_base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_base.h b/src/order_base.h index b0c77b956..2e9ac6fc6 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -165,7 +165,7 @@ public: /** How must the consist be unloaded? */ inline byte GetUnloadType() const { return GB(this->flags, 0, 2); } /** Where must we stop? */ - inline byte GetNonStopType() const { return this->flags & OFB_NON_STOP; } + OrderNonStopFlags GetNonStopType() const; /** What caused us going to the depot? */ inline byte GetDepotOrderType() const { return this->flags; } /** What are we going to do when in the depot. */ @@ -176,7 +176,7 @@ public: /** Set how the consist must be unloaded. */ inline void SetUnloadType(byte unload_type) { SB(this->flags, 0, 2, unload_type); } /** Set whether we must stop at stations or not. */ - inline void SetNonStopType(byte non_stop_type) { SB(this->flags, 3, 1, !!non_stop_type); } + inline void SetNonStopType(OrderNonStopFlags non_stop_type) { SB(this->flags, 3, 1, !!non_stop_type); } /** Set the cause to go to the depot. */ inline void SetDepotOrderType(byte depot_order_type) { this->flags = depot_order_type; } /** Set what we are going to do in the depot. */ |