diff options
author | rubidium <rubidium@openttd.org> | 2007-11-15 18:28:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-15 18:28:00 +0000 |
commit | ecdb16de42874125991b1e770616e46e9c4d24bb (patch) | |
tree | 4bd44853b9e7e9c29ae281bd657c1996f6290daa /src/order_gui.cpp | |
parent | c5a9fd4559bd6858f4f11820e5e994cca1afa2a5 (diff) | |
download | openttd-ecdb16de42874125991b1e770616e46e9c4d24bb.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.cpp | 4 |
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); } } } |