summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-12 20:14:08 +0000
committerfrosch <frosch@openttd.org>2012-11-12 20:14:08 +0000
commitce87b8fc63c424fcb403130b2a5cf0dcf7c2980d (patch)
treee4b2ae5f02b890db45b56a4070f4950f77c42ae0 /src
parent4471f6bca8fa8c703b9676b1465cbc97875d2aa2 (diff)
downloadopenttd-ce87b8fc63c424fcb403130b2a5cf0dcf7c2980d.tar.xz
(svn r24717) -Fix [FS#5139]: When starting a scenario apply the local company settings to the new company.
Diffstat (limited to 'src')
-rw-r--r--src/saveload/afterload.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index e29889dd5..3475ca709 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -717,6 +717,8 @@ bool AfterLoadGame()
* But this exeption is not true for non dedicated network_servers! */
if (!Company::IsValidID(COMPANY_FIRST) && (!_networking || (_networking && _network_server && !_network_dedicated))) {
DoStartupNewCompany(false);
+ Company *c = Company::Get(COMPANY_FIRST);
+ c->settings = _settings_client.company;
}
/* Fix the cache for cargo payments. */