summaryrefslogtreecommitdiff
path: root/src/order.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-15 18:44:22 +0000
committerrubidium <rubidium@openttd.org>2008-01-15 18:44:22 +0000
commit576f8ad93e5eb2d2c2777ae1e448ae80e80d14ba (patch)
tree7948f0844d640b0be32729fdeaf9be3da5453758 /src/order.h
parentab7cb0804de68b015dcc774a4fbcc82e356d2c87 (diff)
downloadopenttd-576f8ad93e5eb2d2c2777ae1e448ae80e80d14ba.tar.xz
(svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*.
Diffstat (limited to 'src/order.h')
-rw-r--r--src/order.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/order.h b/src/order.h
index a34cad0d9..ff3c78a95 100644
--- a/src/order.h
+++ b/src/order.h
@@ -37,32 +37,32 @@ template <> struct EnumPropsT<OrderType> : MakeEnumPropsT<OrderType, byte, OT_BE
typedef TinyEnumT<OrderType> OrderTypeByte;
-/* Order flags -- please use OFB instead OF and use HASBIT/SETBIT/CLEARBIT */
+/* Order flags -- please use OF instead OF and use HASBIT/SETBIT/CLEARBIT */
/** Order flag masks - these are for direct bit operations */
enum OrderFlagMasks {
//Flags for stations:
/** vehicle will transfer cargo (i. e. not deliver to nearby industry/town even if accepted there) */
- OF_TRANSFER = 0x1,
- /** If OF_TRANSFER is not set, drop any cargo loaded. If accepted, deliver, otherwise cargo remains at the station.
+ OFB_TRANSFER = 0x1,
+ /** If OFB_TRANSFER is not set, drop any cargo loaded. If accepted, deliver, otherwise cargo remains at the station.
* No new cargo is loaded onto the vehicle whatsoever */
- OF_UNLOAD = 0x2,
+ OFB_UNLOAD = 0x2,
/** Wait for full load of all vehicles, or of at least one cargo type, depending on patch setting
* @todo make this two different flags */
- OF_FULL_LOAD = 0x4,
+ OFB_FULL_LOAD = 0x4,
//Flags for depots:
/** The current depot-order was initiated because it was in the vehicle's order list */
- OF_PART_OF_ORDERS = 0x2,
- /** if OF_PART_OF_ORDERS is not set, this will cause the vehicle to be stopped in the depot */
- OF_HALT_IN_DEPOT = 0x4,
- /** if OF_PART_OF_ORDERS is set, this will cause the order only be come active if the vehicle needs servicing */
- OF_SERVICE_IF_NEEDED = 0x4, //used when OF_PART_OF_ORDERS is set.
+ OFB_PART_OF_ORDERS = 0x2,
+ /** if OFB_PART_OF_ORDERS is not set, this will cause the vehicle to be stopped in the depot */
+ 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 */
- OF_NON_STOP = 0x8
+ OFB_NON_STOP = 0x8
};
/** Order flags bits - these are for the *BIT macros
@@ -70,13 +70,13 @@ enum OrderFlagMasks {
* @see OrderFlagMasks
*/
enum {
- OFB_TRANSFER = 0,
- OFB_UNLOAD = 1,
- OFB_FULL_LOAD = 2,
- OFB_PART_OF_ORDERS = 1,
- OFB_HALT_IN_DEPOT = 2,
- OFB_SERVICE_IF_NEEDED = 2,
- OFB_NON_STOP = 3
+ OF_TRANSFER = 0,
+ OF_UNLOAD = 1,
+ OF_FULL_LOAD = 2,
+ OF_PART_OF_ORDERS = 1,
+ OF_HALT_IN_DEPOT = 2,
+ OF_SERVICE_IF_NEEDED = 2,
+ OF_NON_STOP = 3
};