mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 15:39:09 +00:00
(svn r14726) -Fix (r14720): making new companies in network kinda failed...
This commit is contained in:
@@ -420,8 +420,11 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CLIENT_INFO)
|
||||
}
|
||||
|
||||
// We don't have this client_id yet, find an empty client_id, and put the data there
|
||||
ci = NetworkFindClientInfoFromClientID(INVALID_CLIENT_ID);
|
||||
if (ci != NULL) {
|
||||
for (int i = 0; i < MAX_CLIENT_SLOTS; i++) {
|
||||
ci = GetNetworkClientInfo(i);
|
||||
if (!ci->IsValid()) break;
|
||||
}
|
||||
if (ci != GetNetworkClientInfo(MAX_CLIENT_SLOTS)) {
|
||||
ci->client_id = client_id;
|
||||
ci->client_playas = playas;
|
||||
|
||||
|
Reference in New Issue
Block a user