|
@@ -1369,26 +1369,26 @@ void NetworkPopulateCompanyInfo()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
ci = NetworkFindClientInfoFromIndex(NETWORK_SERVER_INDEX);
|
|
|
// Register local company (if not dedicated)
|
|
|
if (ci != NULL && IsValidCompanyID(ci->client_playas))
|
|
|
strecpy(_network_company_info[ci->client_playas].clients, ci->client_name, lastof(_network_company_info[0].clients));
|
|
|
strecpy(_network_company_info[ci->client_playas].clients, ci->client_name, lastof(_network_company_info[ci->client_playas].clients));
|
|
|
|
|
|
FOR_ALL_CLIENTS(cs) {
|
|
|
char client_name[NETWORK_CLIENT_NAME_LENGTH];
|
|
|
|
|
|
NetworkGetClientName(client_name, sizeof(client_name), cs);
|
|
|
|
|
|
ci = DEREF_CLIENT_INFO(cs);
|
|
|
if (ci != NULL && IsValidCompanyID(ci->client_playas)) {
|
|
|
if (!StrEmpty(_network_company_info[ci->client_playas].clients)) {
|
|
|
strecat(_network_company_info[ci->client_playas].clients, ", ", lastof(_network_company_info[0].clients));
|
|
|
strecat(_network_company_info[ci->client_playas].clients, ", ", lastof(_network_company_info[ci->client_playas].clients));
|
|
|
}
|
|
|
|
|
|
strecat(_network_company_info[ci->client_playas].clients, client_name, lastof(_network_company_info[0].clients));
|
|
|
strecat(_network_company_info[ci->client_playas].clients, client_name, lastof(_network_company_info[ci->client_playas].clients));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// Send a packet to all clients with updated info about this client_index
|
|
|
void NetworkUpdateClientInfo(uint16 client_index)
|