mirror of https://github.com/OpenTTD/OpenTTD
Fix: for GUI network servers, name the first company the same as any other company
parent
455e202e03
commit
b9c894b717
|
@ -1005,6 +1005,12 @@ void NetworkOnGameStart()
|
||||||
NetworkClientInfo *ci = NetworkClientInfo::GetByClientID(CLIENT_ID_SERVER);
|
NetworkClientInfo *ci = NetworkClientInfo::GetByClientID(CLIENT_ID_SERVER);
|
||||||
if (c != nullptr && ci != nullptr) {
|
if (c != nullptr && ci != nullptr) {
|
||||||
ci->client_playas = c->index;
|
ci->client_playas = c->index;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If the company has not been named yet, the company was just started.
|
||||||
|
* Otherwise it would have gotten a name already, so announce it as a new company.
|
||||||
|
*/
|
||||||
|
if (c->name_1 == STR_SV_UNNAMED && c->name.empty()) NetworkServerNewCompany(c, ci);
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowClientList();
|
ShowClientList();
|
||||||
|
|
Loading…
Reference in New Issue