From 4595d2c3b12490c74b4bd6ff245429b7c418d515 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 5 May 2008 11:36:43 +0000 Subject: (svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items. --- src/news_gui.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/news_gui.cpp') diff --git a/src/news_gui.cpp b/src/news_gui.cpp index f92c9ffc9..92f0ecf12 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -206,8 +206,15 @@ static void NewsWindowProc(Window *w, WindowEvent *e) Vehicle *v = GetVehicle(ni->data_a); ScrollMainWindowTo(v->x_pos, v->y_pos); } else if (ni->flags & NF_TILE) { - if (!ScrollMainWindowToTile(ni->data_a) && ni->data_b != 0) { - ScrollMainWindowToTile(ni->data_b); + if (_ctrl_pressed) { + ShowExtraViewPortWindow(ni->data_a); + if (ni->data_b != 0) { + ShowExtraViewPortWindow(ni->data_b); + } + } else { + if (!ScrollMainWindowToTile(ni->data_a) && ni->data_b != 0) { + ScrollMainWindowToTile(ni->data_b); + } } } break; -- cgit v1.2.3-54-g00ecf