src/industry_gui.cpp
changeset 10411 efe3b7a2746f
parent 10286 aa0670a976a5
child 10414 d9ff9f8b70fe
--- a/src/industry_gui.cpp	Mon May 05 11:24:58 2008 +0000
+++ b/src/industry_gui.cpp	Mon May 05 11:36:43 2008 +0000
@@ -568,7 +568,11 @@
 		} break;
 		case IVW_GOTO:
 			i = GetIndustry(w->window_number);
-			ScrollMainWindowToTile(i->xy + TileDiffXY(1, 1));
+			if (_ctrl_pressed) {
+				ShowExtraViewPortWindow(i->xy + TileDiffXY(1, 1));
+			} else {
+				ScrollMainWindowToTile(i->xy + TileDiffXY(1, 1));
+			}
 		} break;
 
 		}
@@ -853,7 +857,11 @@
 				if (!IsInsideMM(y, 0, w->vscroll.cap)) return;
 				p = y + w->vscroll.pos;
 				if (p < _num_industry_sort) {
-					ScrollMainWindowToTile(_industry_sort[p]->xy);
+					if (_ctrl_pressed) {
+						ShowExtraViewPortWindow(_industry_sort[p]->xy);
+					} else {
+						ScrollMainWindowToTile(_industry_sort[p]->xy);
+					}
 				}
 			} break;
 		}