summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-15 18:28:00 +0000
committerrubidium <rubidium@openttd.org>2007-11-15 18:28:00 +0000
commitdace4686c00d02e9640bc41720d845f097e7591b (patch)
tree4bd44853b9e7e9c29ae281bd657c1996f6290daa /src/order_gui.cpp
parent59a6e40ed215319b6fe1feace41b7f745e28364a (diff)
downloadopenttd-dace4686c00d02e9640bc41720d845f097e7591b.tar.xz
(svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ.
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 27ea5646e..22e90cb3c 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -401,7 +401,7 @@ static void OrderClick_Goto(Window *w, const Vehicle *v)
ToggleWidgetLoweredState(w, ORDER_WIDGET_GOTO);
if (IsWindowWidgetLowered(w, ORDER_WIDGET_GOTO)) {
_place_clicked_vehicle = NULL;
- SetObjectToPlaceWnd(ANIMCURSOR_PICKSTATION, PAL_NONE, 1, w);
+ SetObjectToPlaceWnd(ANIMCURSOR_PICKSTATION, PAL_NONE, VHM_RECT, w);
} else {
ResetObjectToPlace();
}
@@ -591,7 +591,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e)
if (v->owner == _local_player) {
/* Activate drag and drop */
- SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, 4, w);
+ SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, VHM_DRAG, w);
}
}
}