summaryrefslogtreecommitdiff
path: root/src/order_type.h
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-02-14 17:04:01 +0000
committermichi_cc <michi_cc@openttd.org>2012-02-14 17:04:01 +0000
commit347157cb8ce016428275d6143b555de1dc802133 (patch)
tree5371016c56c8a5b927e359c0085bd83b1bd8e961 /src/order_type.h
parent76344163c7d190894629768549130438c34174aa (diff)
downloadopenttd-347157cb8ce016428275d6143b555de1dc802133.tar.xz
(svn r23946) -Codechange: Pass a proper enum instead of a bit flag to CmdChangeTimetable for indicating what to change.
Diffstat (limited to 'src/order_type.h')
-rw-r--r--src/order_type.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/order_type.h b/src/order_type.h
index 0c6f86542..0099c67c9 100644
--- a/src/order_type.h
+++ b/src/order_type.h
@@ -163,6 +163,16 @@ enum OrderDepotAction {
DA_END
};
+/**
+ * Enumeration for the data to set in CmdChangeTimetable.
+ */
+enum ModifyTimetableFlags {
+ MTF_WAIT_TIME, ///< Set wait time.
+ MTF_TRAVEL_TIME, ///< Set travel time.
+ MTF_END
+};
+template <> struct EnumPropsT<ModifyTimetableFlags> : MakeEnumPropsT<ModifyTimetableFlags, byte, MTF_WAIT_TIME, MTF_END, MTF_END, 2> {};
+
/* Possible clone options */
enum CloneOptions {