diff options
author | frosch <frosch@openttd.org> | 2009-05-02 00:10:24 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-05-02 00:10:24 +0000 |
commit | d518b3d0acf38509813daa0614559d267f196154 (patch) | |
tree | b63f38d5da1c67e9a037b28ffdc0f043387b33e5 /src/order_base.h | |
parent | a22ff74ef205dc3409c7e743d24892960cdbb0b1 (diff) | |
download | openttd-d518b3d0acf38509813daa0614559d267f196154.tar.xz |
(svn r16199) -Codechange: Pass OrderNonStopFlags also to MakeGoToDepotOrder().
-Fix: 'Go non-stop to nearest depot'-orders did not work wrt. the 'non-stop' part.
-Fix: Adding 'Go to nearest depot'-orders did not respect the default setting for 'non-stop'.
Diffstat (limited to 'src/order_base.h')
-rw-r--r-- | src/order_base.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/order_base.h b/src/order_base.h index 7b0f0ab13..029413ee0 100644 --- a/src/order_base.h +++ b/src/order_base.h @@ -83,13 +83,14 @@ public: /** * Makes this order a Go To Depot order. - * @param destination the depot to go to. - * @param order is this order a 'default' order, or an overriden vehicle order? - * @param action what to do in the depot? - * @param cargo the cargo type to change to. - * @param subtype the subtype to change to. - */ - void MakeGoToDepot(DepotID destination, OrderDepotTypeFlags order, OrderDepotActionFlags action = ODATF_SERVICE_ONLY, CargoID cargo = CT_NO_REFIT, byte subtype = 0); + * @param destination the depot to go to. + * @param order is this order a 'default' order, or an overriden vehicle order? + * @param non_stop_type how to get to the depot? + * @param action what to do in the depot? + * @param cargo the cargo type to change to. + * @param subtype the subtype to change to. + */ + void MakeGoToDepot(DepotID destination, OrderDepotTypeFlags order, OrderNonStopFlags non_stop_type = ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS, OrderDepotActionFlags action = ODATF_SERVICE_ONLY, CargoID cargo = CT_NO_REFIT, byte subtype = 0); /** * Makes this order a Go To Waypoint order. |