summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-12 14:37:35 +0000
committersmatz <smatz@openttd.org>2007-12-12 14:37:35 +0000
commit5acc147c1cc5322ad1f307f4e1143a17cb8f77b3 (patch)
treedb66fb63672eccb83db1f1e2338cd7b2d56150aa /src/order_gui.cpp
parente0646af976337e6ed210b0ea920710613f078fca (diff)
downloadopenttd-5acc147c1cc5322ad1f307f4e1143a17cb8f77b3.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.cpp3
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();