On load, use previous local company or first usable company
Instead of always using the first company slot
This commit is contained in:
@@ -970,9 +970,8 @@ bool AfterLoadGame()
|
||||
* a company does not exist yet. So create one here.
|
||||
* 1 exception: network-games. Those can have 0 companies
|
||||
* But this exception 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);
|
||||
if (!Company::IsValidID(GetDefaultLocalCompany()) && (!_networking || (_networking && _network_server && !_network_dedicated))) {
|
||||
Company *c = DoStartupNewCompany(false);
|
||||
c->settings = _settings_client.company;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user