summaryrefslogtreecommitdiff
path: root/src/order_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-09 12:46:43 +0000
committerrubidium <rubidium@openttd.org>2008-04-09 12:46:43 +0000
commitc41624bb94d97fa6393e361dbe09fca2d53f0239 (patch)
tree7d40f390502a71fe5e6d7d33274127ac4f109a15 /src/order_type.h
parentcaa3b659b0fc9b482c0e3467849944870fce6c15 (diff)
downloadopenttd-c41624bb94d97fa6393e361dbe09fca2d53f0239.tar.xz
(svn r12636) -Codechange: make CmdModifyOrder a little more flexible and remove 'hack' that used the full load flag to set the service if needed flag.
Diffstat (limited to 'src/order_type.h')
-rw-r--r--src/order_type.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/order_type.h b/src/order_type.h
index ec8be1b7c..1ebbbdc35 100644
--- a/src/order_type.h
+++ b/src/order_type.h
@@ -61,6 +61,7 @@ enum OrderNonStopFlags {
ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS = 1, ///< The vehicle will not stop at any stations it passes except the destination.
ONSF_NO_STOP_AT_DESTINATION_STATION = 2, ///< The vehicle will stop at any station it passes except the destination.
ONSF_NO_STOP_AT_ANY_STATION = 3, ///< The vehicle will not stop at any stations it passes including the destination.
+ ONSF_END
};
/**
@@ -81,13 +82,13 @@ enum OrderDepotActionFlags {
};
/**
- * Enumeration for the 'flag' to toggle in CmdModifyOrder.
+ * Enumeration for the data to set in CmdModifyOrder.
*/
-enum {
- OF_TRANSFER = 0,
- OF_UNLOAD = 1,
- OF_FULL_LOAD = 2,
- OF_NON_STOP = 3
+enum ModifyOrderFlags {
+ MOF_NON_STOP, ///< Passes a OrderNonStopFlags.
+ MOF_UNLOAD, ///< Passes an OrderUnloadType.
+ MOF_LOAD, ///< Passes an OrderLoadType
+ MOF_DEPOT_ACTION, ///< Toggle the 'service' if needed flag.
};