diff options
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 64e993e30..c1345e5c1 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -422,7 +422,12 @@ static void PlayerStationsWndProc(Window *w, WindowEvent *e) const Station *st = sl->sort_list[id_v]; /* do not check HasStationInUse - it is slow and may be invalid */ assert(st->owner == owner || (st->owner == OWNER_NONE && !st->IsBuoy())); - ScrollMainWindowToTile(st->xy); + + if (_ctrl_pressed) { + ShowExtraViewPortWindow(st->xy); + } else { + ScrollMainWindowToTile(st->xy); + } break; } @@ -936,7 +941,11 @@ static void StationViewWndProc(Window *w, WindowEvent *e) break; case SVW_LOCATION: - ScrollMainWindowToTile(GetStation(w->window_number)->xy); + if (_ctrl_pressed) { + ShowExtraViewPortWindow(GetStation(w->window_number)->xy); + } else { + ScrollMainWindowToTile(GetStation(w->window_number)->xy); + } break; case SVW_RATINGS: |