diff options
author | peter1138 <peter1138@openttd.org> | 2008-05-05 11:36:43 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-05-05 11:36:43 +0000 |
commit | 4595d2c3b12490c74b4bd6ff245429b7c418d515 (patch) | |
tree | 2b03bcb1a0888d81488cf0ab912ed5a356863cee /src/depot_gui.cpp | |
parent | 57e104f97edb5e3f60d7bab515bb9c97eb21e132 (diff) | |
download | openttd-4595d2c3b12490c74b4bd6ff245429b7c418d515.tar.xz |
(svn r12953) -Feature: Open a new viewport when ctrl-clicking on a 'Location' button, a town/station/industry list, or some news items.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 7a859b1bc..fcd4adebc 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -819,7 +819,13 @@ static void DepotWndProc(Window *w, WindowEvent *e) } break; - case DEPOT_WIDGET_LOCATION: ScrollMainWindowToTile(w->window_number); break; + case DEPOT_WIDGET_LOCATION: + if (_ctrl_pressed) { + ShowExtraViewPortWindow(w->window_number); + } else { + ScrollMainWindowToTile(w->window_number); + } + break; case DEPOT_WIDGET_STOP_ALL: case DEPOT_WIDGET_START_ALL: |