mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r24717) -Fix [FS#5139]: When starting a scenario apply the local company settings to the new company.
This commit is contained in:
parent
4d2ce0a035
commit
6af105dc6b
@ -717,6 +717,8 @@ bool AfterLoadGame()
|
|||||||
* But this exeption is not true for non dedicated network_servers! */
|
* But this exeption is not true for non dedicated network_servers! */
|
||||||
if (!Company::IsValidID(COMPANY_FIRST) && (!_networking || (_networking && _network_server && !_network_dedicated))) {
|
if (!Company::IsValidID(COMPANY_FIRST) && (!_networking || (_networking && _network_server && !_network_dedicated))) {
|
||||||
DoStartupNewCompany(false);
|
DoStartupNewCompany(false);
|
||||||
|
Company *c = Company::Get(COMPANY_FIRST);
|
||||||
|
c->settings = _settings_client.company;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fix the cache for cargo payments. */
|
/* Fix the cache for cargo payments. */
|
||||||
|
Loading…
Reference in New Issue
Block a user