summaryrefslogtreecommitdiff
path: root/src/order_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-24 14:49:45 +0000
committerrubidium <rubidium@openttd.org>2008-10-24 14:49:45 +0000
commit42df5cbc03042b75cab04b634a1c53b3dd87d507 (patch)
tree40582103b55598cf5fc668c1f58b05dee89d131d /src/order_type.h
parente0940888523e2a48760e5c528300be5ef983960d (diff)
downloadopenttd-42df5cbc03042b75cab04b634a1c53b3dd87d507.tar.xz
(svn r14524) -Add: stop-in-depot as part of orders (PhilSophus)
Diffstat (limited to 'src/order_type.h')
-rw-r--r--src/order_type.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/order_type.h b/src/order_type.h
index 5ac9f89a1..3ffbdb6f1 100644
--- a/src/order_type.h
+++ b/src/order_type.h
@@ -122,7 +122,7 @@ 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.
+ MOF_DEPOT_ACTION, ///< Selects the OrderDepotAction
MOF_COND_VARIABLE, ///< A conditional variable changes.
MOF_COND_COMPARATOR, ///< A comparator changes.
MOF_COND_VALUE, ///< The value to set the condition to.
@@ -130,6 +130,16 @@ enum ModifyOrderFlags {
MOF_END
};
+/**
+ * Depot action to switch to when doing a MOF_DEPOT_ACTION.
+ */
+enum OrderDepotAction {
+ DA_ALWAYS_GO, ///< Always go to the depot
+ DA_SERVICE, ///< Service only if needed
+ DA_STOP, ///< Go to the depot and stop there
+ DA_END
+};
+
/* Possible clone options */
enum {