diff options
author | rubidium <rubidium@openttd.org> | 2008-04-09 12:46:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-09 12:46:43 +0000 |
commit | 16edbb863554e4e802531e6034f84211a2c2d2d0 (patch) | |
tree | 7d40f390502a71fe5e6d7d33274127ac4f109a15 /src/order_type.h | |
parent | 70dc7edd92a6213ac6ffce84b739b74168249a7e (diff) | |
download | openttd-16edbb863554e4e802531e6034f84211a2c2d2d0.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.h | 13 |
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. }; |