|
|
|
@ -2638,8 +2638,8 @@ void SyncCompanySettings()
|
|
|
|
|
for (auto &sd : _company_settings) {
|
|
|
|
|
if (!sd->IsIntSetting()) continue;
|
|
|
|
|
if (!SlIsObjectCurrentlyValid(sd->save.version_from, sd->save.version_to, sd->save.ext_feature_test)) continue;
|
|
|
|
|
uint32 old_value = (uint32)sd->AsIntSetting()->Read(new_object);
|
|
|
|
|
uint32 new_value = (uint32)sd->AsIntSetting()->Read(old_object);
|
|
|
|
|
uint32 old_value = (uint32)sd->AsIntSetting()->Read(old_object);
|
|
|
|
|
uint32 new_value = (uint32)sd->AsIntSetting()->Read(new_object);
|
|
|
|
|
if (old_value != new_value) NetworkSendCommand(0, 0, new_value, 0, CMD_CHANGE_COMPANY_SETTING, nullptr, sd->name, _local_company, 0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|