AiChecksDependencies is now synced across network clients

This commit is contained in:
Tim Felgentreff 2022-03-03 22:50:14 +01:00
parent 980adaff5b
commit 083a52fe65

View file

@ -807,7 +807,7 @@ static bool AiUpgradeTo(const CUnitType &type, CUnitType &what)
{
std::vector<CUnit *> table;
if (GameSettings.AiChecksDependencies || IsNetworkGame()) {
if (GameSettings.AiChecksDependencies) {
if (!CheckDependByType(*AiPlayer->Player, what)) {
return false;
}