mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
This commit is contained in:
parent
59645c6733
commit
7c3c92f8b8
@ -1602,8 +1602,8 @@ void SyncCompanySettings()
|
||||
const void *new_object = &_settings_client.company;
|
||||
for (auto &desc : _company_settings) {
|
||||
const SettingDesc *sd = GetSettingDesc(desc);
|
||||
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) Command<CMD_CHANGE_COMPANY_SETTING>::SendNet(STR_NULL, _local_company, sd->GetName(), new_value);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user