House picker: Allow only one instance, remove button toggle behaviour.

This makes it behave more like object picker window.
This commit is contained in:
Jonathan G Rennison
2015-09-09 19:44:42 +01:00
parent 5a2ecfd548
commit 7040d61287
2 changed files with 5 additions and 5 deletions

View File

@@ -613,11 +613,8 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
ShowBuildObjectPicker();
break;
case WID_ETT_PLACE_HOUSE: // Place house button
if (HandlePlacePushButton(this, WID_ETT_PLACE_HOUSE, SPR_CURSOR_TOWN, HT_RECT)) {
ShowBuildHousePicker(this);
this->last_user_action = widget;
}
case WID_ETT_PLACE_HOUSE: // Place house button
ShowBuildHousePicker(this);
break;
case WID_ETT_INCREASE_SIZE: