summaryrefslogtreecommitdiff
path: root/src/order_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-07 08:59:04 +0000
committerrubidium <rubidium@openttd.org>2008-04-07 08:59:04 +0000
commitc57a1d74c3e083a24505fad78ce216500adf82ee (patch)
treee49996b3a01b39c141422d537b97922f7c2956ee /src/order_base.h
parent6af1fb2bdd32898d9456174d99413adf3e466797 (diff)
downloadopenttd-c57a1d74c3e083a24505fad78ce216500adf82ee.tar.xz
(svn r12600) -Codechange: make GetNonStopType return a more augmented type; not is there a non-stop order but the kind of non-stop order, so one doesn't need to check _patches.new_nonstop type everywhere.
Diffstat (limited to 'src/order_base.h')
-rw-r--r--src/order_base.h4
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. */