From 89a135293a0bbab3e9b669e71b21f5f0aa0621d8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 19 Jan 2011 23:59:29 +0000 Subject: (svn r21864) -Fix [FS#4430]: distant-join station would build at the wrong location when having persistent building turned on and selecting a "second" location for the station tile --- src/station_gui.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/station_gui.cpp b/src/station_gui.cpp index b3ac5e310..433ab12bb 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -1481,8 +1481,6 @@ static bool StationJoinerNeeded(CommandContainer cmd, TileArea ta) * return true (i.e. just flash the old window) */ Window *selection_window = FindWindowById(WC_SELECT_STATION, 0); if (selection_window != NULL) { - if (!_ctrl_pressed) return true; - /* Abort current distant-join and start new one */ delete selection_window; UpdateTileSelection(); @@ -1512,7 +1510,6 @@ void ShowSelectBaseStationIfNeeded(CommandContainer cmd, TileArea ta) { if (StationJoinerNeeded(cmd, ta)) { if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace(); - if (BringWindowToFrontById(WC_SELECT_STATION, 0)) return; new SelectStationWindow(&_select_station_desc, cmd, ta); } else { DoCommandP(&cmd); -- cgit v1.2.3-54-g00ecf