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) {
switch(id) {
case CHECKBOX_AUTO_SEARCH: {
mainGame->gameConf.auto_search_limit = mainGame->chkAutoSearch->isChecked() ? 0 : -1;
if(mainGame->is_building && !mainGame->is_siding)
mainGame->deckBuilder.InstantSearch();
return true;
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