mirror of https://github.com/OpenTTD/OpenTTD
(svn r26577) -Fix [FS#6001]: [Network] Client of non-dedicated server was not correctly put into the first company for all state variables
parent
4a52300838
commit
e64249446d
|
@ -711,7 +711,7 @@ static void NetworkInitGameInfo()
|
||||||
/* There should be always space for the server. */
|
/* There should be always space for the server. */
|
||||||
assert(NetworkClientInfo::CanAllocateItem());
|
assert(NetworkClientInfo::CanAllocateItem());
|
||||||
NetworkClientInfo *ci = new NetworkClientInfo(CLIENT_ID_SERVER);
|
NetworkClientInfo *ci = new NetworkClientInfo(CLIENT_ID_SERVER);
|
||||||
ci->client_playas = _network_dedicated ? COMPANY_SPECTATOR : _local_company;
|
ci->client_playas = _network_dedicated ? COMPANY_SPECTATOR : COMPANY_FIRST;
|
||||||
|
|
||||||
strecpy(ci->client_name, _settings_client.network.client_name, lastof(ci->client_name));
|
strecpy(ci->client_name, _settings_client.network.client_name, lastof(ci->client_name));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue