diff options
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 64767290e..3937e9917 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -333,7 +333,11 @@ static void TownViewWndProc(Window *w, WindowEvent *e) case WE_CLICK: switch (e->we.click.widget) { case TVW_CENTERVIEW: /* scroll to location */ - ScrollMainWindowToTile(t->xy); + if (_ctrl_pressed) { + ShowExtraViewPortWindow(t->xy); + } else { + ScrollMainWindowToTile(t->xy); + } break; case TVW_SHOWAUTORITY: /* town authority */ @@ -541,7 +545,11 @@ static void TownDirectoryWndProc(Window *w, WindowEvent *e) t = _town_sort[id_v]; assert(t->xy); - ScrollMainWindowToTile(t->xy); + if (_ctrl_pressed) { + ShowExtraViewPortWindow(t->xy); + } else { + ScrollMainWindowToTile(t->xy); + } } break; } break; |