summaryrefslogtreecommitdiff
path: root/src/order_type.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_type.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_type.h')
-rw-r--r--src/order_type.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/order_type.h b/src/order_type.h
index cf2740b73..4d331a89d 100644
--- a/src/order_type.h
+++ b/src/order_type.h
@@ -59,12 +59,16 @@ enum OrderFlagMasks {
OFB_HALT_IN_DEPOT = 0x4,
/** if OFB_PART_OF_ORDERS is set, this will cause the order only be come active if the vehicle needs servicing */
OFB_SERVICE_IF_NEEDED = 0x4, //used when OFB_PART_OF_ORDERS is set.
+};
- //Common flags
- /** This causes the vehicle not to stop at intermediate OR the destination station (depending on patch settings)
- * @todo make this two different flags */
- OFB_NO_NON_STOP = 0x0,
- OFB_NON_STOP = 0x8
+/**
+ * Non-stop order flags.
+ */
+enum OrderNonStopFlags {
+ ONSF_STOP_EVERYWHERE = 0,
+ ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS = 1,
+ ONSF_NO_STOP_AT_DESTINATION_STATION = 2,
+ ONSF_NO_STOP_AT_ANY_STATION = 3
};
/** Order flags bits - these are for the *BIT macros