Commit 31e7e3a8 authored by nanahira's avatar nanahira Committed by GitHub

instant search when option changed

parent a7fdb21a
...@@ -1789,6 +1789,8 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) { ...@@ -1789,6 +1789,8 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
switch(id) { switch(id) {
case CHECKBOX_AUTO_SEARCH: { case CHECKBOX_AUTO_SEARCH: {
mainGame->gameConf.auto_search_limit = mainGame->chkAutoSearch->isChecked() ? 0 : -1; mainGame->gameConf.auto_search_limit = mainGame->chkAutoSearch->isChecked() ? 0 : -1;
if(mainGame->is_building && !mainGame->is_siding)
mainGame->deckBuilder.InstantSearch();
return true; return true;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment