summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--order.h5
-rw-r--r--train_cmd.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/order.h b/order.h
index 33708c042..1b93f49c2 100644
--- a/order.h
+++ b/order.h
@@ -15,6 +15,8 @@ enum {
};
/* Order flags -- please use OFB instead OF and use HASBIT/SETBIT/CLEARBIT */
+
+/* Order flag masks - these are for direct bit operations */
enum {
//Flags for stations:
OF_UNLOAD = 0x2,
@@ -28,7 +30,7 @@ enum {
OF_NON_STOP = 0x8
};
-/* Order flags bits */
+/* Order flags bits - these are for the *BIT macros */
enum {
OFB_UNLOAD = 1,
OFB_FULL_LOAD = 2,
@@ -37,6 +39,7 @@ enum {
OFB_NON_STOP = 3
};
+
/* Possible clone options */
enum {
CO_SHARE = 0,
diff --git a/train_cmd.c b/train_cmd.c
index 0a49aea89..198125281 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -1360,7 +1360,7 @@ int32 CmdTrainGotoDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
if (v->current_order.type == OT_GOTO_DEPOT) {
if (flags & DC_EXEC) {
- if (HASBIT(v->current_order.flags, OF_PART_OF_ORDERS)) {
+ if (HASBIT(v->current_order.flags, OFB_PART_OF_ORDERS)) {
v->u.rail.days_since_order_progr = 0;
v->cur_order_index++;
}