Erase queued command also when depot direction/airport type/station type changes.

This commit is contained in:
Juanjo
2013-10-14 18:10:26 +00:00
committed by pelya
parent fc248814fe
commit 60a7ac9f3c
4 changed files with 8 additions and 0 deletions

View File

@@ -881,6 +881,7 @@ struct BuildRoadDepotWindow : public PickerWindowBase {
_road_depot_orientation = (DiagDirection)(widget - WID_BROD_DEPOT_NE);
this->LowerWidget(_road_depot_orientation + WID_BROD_DEPOT_NE);
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
EraseQueuedTouchCommand();
this->SetDirty();
break;
@@ -1027,6 +1028,7 @@ struct BuildRoadStationWindow : public PickerWindowBase {
_settings_client.gui.station_show_coverage = (widget != WID_BROS_LT_OFF);
this->LowerWidget(_settings_client.gui.station_show_coverage + WID_BROS_LT_OFF);
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
EraseQueuedTouchCommand();
this->SetDirty();
break;