Fix: AI window did not update button disabled state when changing values. (#11527)
(cherry picked from commit 0b1429ce14
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
cf473ddd83
commit
74edeea175
@@ -199,6 +199,7 @@ struct AIConfigWindow : public Window {
|
||||
new_value = std::min(MAX_COMPANIES - 1, GetGameSettings().difficulty.max_no_competitors + 1);
|
||||
}
|
||||
IConsoleSetSetting("difficulty.max_no_competitors", new_value);
|
||||
this->InvalidateData();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -211,6 +212,7 @@ struct AIConfigWindow : public Window {
|
||||
new_value = std::min(static_cast<int>(MAX_COMPETITORS_INTERVAL), GetGameSettings().difficulty.competitors_interval + 1);
|
||||
}
|
||||
IConsoleSetSetting("difficulty.competitors_interval", new_value);
|
||||
this->InvalidateData();
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user