diff options
author | smatz <smatz@openttd.org> | 2007-12-12 14:37:35 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2007-12-12 14:37:35 +0000 |
commit | 3b59b68a154d16934ab84e4ec49d91300fbcb539 (patch) | |
tree | db66fb63672eccb83db1f1e2338cd7b2d56150aa /src/order_gui.cpp | |
parent | a7fa65a2e3387278614dfdf8cfe994adae402508 (diff) | |
download | openttd-3b59b68a154d16934ab84e4ec49d91300fbcb539.tar.xz |
(svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 356782a39..efb29fb9f 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -27,6 +27,7 @@ #include "vehicle_gui.h" #include "timetable.h" #include "cargotype.h" +#include "order.h" enum OrderWindowWidgets { ORDER_WIDGET_CLOSEBOX = 0, @@ -364,7 +365,7 @@ static bool HandleOrderVehClick(const Vehicle *v, const Vehicle *u, Window *w) // obviously if you press CTRL on a non-empty orders vehicle you know what you are doing if (v->num_orders != 0 && _ctrl_pressed == 0) return false; - if (DoCommandP(v->tile, v->index | (u->index << 16), _ctrl_pressed ? 0 : 1, NULL, + if (DoCommandP(v->tile, v->index | (u->index << 16), _ctrl_pressed ? CO_SHARE : CO_COPY, NULL, _ctrl_pressed ? CMD_CLONE_ORDER | CMD_MSG(STR_CANT_SHARE_ORDER_LIST) : CMD_CLONE_ORDER | CMD_MSG(STR_CANT_COPY_ORDER_LIST))) { WP(w,order_d).sel = -1; ResetObjectToPlace(); |