summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-11 20:32:32 +0000
committerrubidium <rubidium@openttd.org>2010-01-11 20:32:32 +0000
commitebe99fd4935d54466730095e7a9f239181d5ba7b (patch)
treeadaacb8e6827eaad9ad49c81905a04dca0bf8c21 /src/settings.cpp
parent3e5a87a52cc8355a2a5c2831c60643bf30d41a3a (diff)
downloadopenttd-ebe99fd4935d54466730095e7a9f239181d5ba7b.tar.xz
(svn r18784) -Codechange: make NetworkSend_Command accept a company instead of using _local_company to pass that information, with the whole mess when you don't want the company to be _local_company.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index d4980b07e..00c0f21cc 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -1579,7 +1579,7 @@ void SyncCompanySettings()
const void *new_var = GetVariableAddress(&_settings_client.company, &sd->save);
uint32 old_value = (uint32)ReadValue(old_var, sd->save.conv);
uint32 new_value = (uint32)ReadValue(new_var, sd->save.conv);
- if (old_value != new_value) NetworkSend_Command(0, i, new_value, CMD_CHANGE_COMPANY_SETTING, NULL, NULL);
+ if (old_value != new_value) NetworkSend_Command(0, i, new_value, CMD_CHANGE_COMPANY_SETTING, NULL, NULL, _local_company);
}
}
#endif /* ENABLE_NETWORK */