Mercurial > hg > openttd
changeset 17127:1e96a453989d draft
(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
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 19 Jan 2011 23:59:29 +0000 |
parents | 5b41f311a643 |
children | e71b7d776112 |
files | src/station_gui.cpp |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -1481,8 +1481,6 @@ * 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 @@ { if (StationJoinerNeeded<T>(cmd, ta)) { if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace(); - if (BringWindowToFrontById(WC_SELECT_STATION, 0)) return; new SelectStationWindow<T>(&_select_station_desc, cmd, ta); } else { DoCommandP(&cmd);