diff options
author | Erich Eckner <git@eckner.net> | 2018-10-30 11:13:12 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-16 19:11:46 +0100 |
commit | 5430113f4a842e519d2661a490022dcdf86f5247 (patch) | |
tree | 9368bef97133cea28eae5fc2161a4fdfd61dae27 /src/main_gui.cpp | |
parent | 278a705bbbd378a4c05a795b42028ba440a8bd49 (diff) | |
download | openttd-5430113f4a842e519d2661a490022dcdf86f5247.tar.xz |
underground patch applied
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 199546d43..4b3dea267 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -107,7 +107,7 @@ bool HandlePlacePushButton(Window *w, int widget, CursorID cursor, HighLightStyl if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); w->SetDirty(); - if (w->IsWidgetLowered(widget)) { + if (w->IsWidgetLowered(widget) && mode == _thd.place_mode) { ResetObjectToPlace(); return false; } |