summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-05 11:27:50 +0000
committersmatz <smatz@openttd.org>2008-04-05 11:27:50 +0000
commitb2e4adc2b8e3a06c25f0ad988a3826b6f4ddfc85 (patch)
tree8cac13d3ae9840f5708a9bc585b873cf5bf60343 /src/group_gui.cpp
parentbdd64495cd7af3fa064ed58a5419845eb78def46 (diff)
downloadopenttd-b2e4adc2b8e3a06c25f0ad988a3826b6f4ddfc85.tar.xz
(svn r12576) -Feature(tte) [FS#337]: highlight vehicle chain when dragging in the group and depot GUI if appropriate
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 85ca3ea14..23e1f5c4e 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -575,6 +575,7 @@ static void GroupWndProc(Window *w, WindowEvent *e)
if (v->IsValid()) {
SetObjectToPlaceWnd(v->GetImage(DIR_W), GetVehiclePalette(v), VHM_DRAG, w);
+ _cursor.vehchain = true;
}
SetWindowDirty(w);
@@ -687,6 +688,7 @@ static void GroupWndProc(Window *w, WindowEvent *e)
break;
}
}
+ _cursor.vehchain = false;
break;
}