(svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window

This commit is contained in:
smatz
2010-09-06 14:14:09 +00:00
parent d2572f94d2
commit fd54943c7a
11 changed files with 77 additions and 111 deletions

View File

@@ -2204,13 +2204,11 @@ static void MouseLoop(MouseClick click, int mousewheel)
return;
}
if (_thd.place_mode == HT_NONE) {
if (!HandleViewportClicked(vp, x, y) &&
!(w->flags4 & WF_DISABLE_VP_SCROLL) &&
_settings_client.gui.left_mouse_btn_scrolling) {
_scrolling_viewport = true;
_cursor.fix_at = false;
}
if (!HandleViewportClicked(vp, x, y) &&
!(w->flags4 & WF_DISABLE_VP_SCROLL) &&
_settings_client.gui.left_mouse_btn_scrolling) {
_scrolling_viewport = true;
_cursor.fix_at = false;
} else {
PlaceObject();
}