diff options
author | rubidium <rubidium@openttd.org> | 2008-04-07 08:59:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-07 08:59:04 +0000 |
commit | fcdd44b662dc011069b2ec19c3f46a5e9eaa7471 (patch) | |
tree | e49996b3a01b39c141422d537b97922f7c2956ee /src/order_type.h | |
parent | 76eaed68a07fb0134c99100a0fb49e884b511244 (diff) | |
download | openttd-fcdd44b662dc011069b2ec19c3f46a5e9eaa7471.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.h | 14 |
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 |