summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2016-08-15 18:33:52 +0000
committerfrosch <frosch@openttd.org>2016-08-15 18:33:52 +0000
commitddc920521215c38ab7e96bebb929b313758268df (patch)
tree7cf2b7ca745d1d95af0d13b82d6b7f834913e0a6 /src/group_gui.cpp
parentcff2b493653eda314f997f998b297621eeb9e190 (diff)
downloadopenttd-ddc920521215c38ab7e96bebb929b313758268df.tar.xz
(svn r27630) -Codechange: Deduplicate code to attach vehicle to cursor.
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 81fb1202e..361ab53e5 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -627,8 +627,8 @@ public:
this->vehicle_sel = v->index;
- int image = v->GetImage(_current_text_dir == TD_RTL ? DIR_E : DIR_W, EIT_IN_LIST);
- SetObjectToPlaceWnd(image, GetVehiclePalette(v), HT_DRAG, this);
+ SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
+ SetMouseCursorVehicle(v, EIT_IN_LIST);
_cursor.vehchain = true;
this->SetDirty();