|
|
@ -400,10 +400,8 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CLIENT_INFO)
|
|
|
|
uint16 index = p->Recv_uint16();
|
|
|
|
uint16 index = p->Recv_uint16();
|
|
|
|
PlayerID playas = (Owner)p->Recv_uint8();
|
|
|
|
PlayerID playas = (Owner)p->Recv_uint8();
|
|
|
|
char name[NETWORK_NAME_LENGTH];
|
|
|
|
char name[NETWORK_NAME_LENGTH];
|
|
|
|
char unique_id[NETWORK_UNIQUE_ID_LENGTH];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
p->Recv_string(name, sizeof(name));
|
|
|
|
p->Recv_string(name, sizeof(name));
|
|
|
|
p->Recv_string(unique_id, sizeof(unique_id));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (MY_CLIENT->has_quit) return NETWORK_RECV_STATUS_CONN_LOST;
|
|
|
|
if (MY_CLIENT->has_quit) return NETWORK_RECV_STATUS_CONN_LOST;
|
|
|
|
|
|
|
|
|
|
|
@ -435,7 +433,6 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CLIENT_INFO)
|
|
|
|
ci->client_playas = playas;
|
|
|
|
ci->client_playas = playas;
|
|
|
|
|
|
|
|
|
|
|
|
ttd_strlcpy(ci->client_name, name, sizeof(ci->client_name));
|
|
|
|
ttd_strlcpy(ci->client_name, name, sizeof(ci->client_name));
|
|
|
|
ttd_strlcpy(ci->unique_id, unique_id, sizeof(ci->unique_id));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InvalidateWindow(WC_CLIENT_LIST, 0);
|
|
|
|
InvalidateWindow(WC_CLIENT_LIST, 0);
|
|
|
|
|
|
|
|
|
|
|
|