Lines 344-350
DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER
Link Here
|
344 |
if (ci != NULL) { |
344 |
if (ci != NULL) { |
345 |
if (playas == ci->client_playas && strcmp(name, ci->client_name) != 0) { |
345 |
if (playas == ci->client_playas && strcmp(name, ci->client_name) != 0) { |
346 |
// Client name changed, display the change |
346 |
// Client name changed, display the change |
347 |
NetworkTextMessage(NETWORK_ACTION_NAME_CHANGE, 1, false, ci->client_name, name); |
347 |
NetworkTextMessage(NETWORK_ACTION_NAME_CHANGE, 1, false, ci->client_name, "%s", name); |
348 |
} else if (playas != ci->client_playas) { |
348 |
} else if (playas != ci->client_playas) { |
349 |
// The player changed from client-player.. |
349 |
// The player changed from client-player.. |
350 |
// Do not display that for now |
350 |
// Do not display that for now |
Lines 687-693
DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER
Link Here
|
687 |
|
687 |
|
688 |
ci = NetworkFindClientInfoFromIndex(index); |
688 |
ci = NetworkFindClientInfoFromIndex(index); |
689 |
if (ci != NULL) { |
689 |
if (ci != NULL) { |
690 |
NetworkTextMessage(NETWORK_ACTION_LEAVE, 1, false, ci->client_name, str); |
690 |
NetworkTextMessage(NETWORK_ACTION_LEAVE, 1, false, ci->client_name, "%s", str); |
691 |
|
691 |
|
692 |
// The client is gone, give the NetworkClientInfo free |
692 |
// The client is gone, give the NetworkClientInfo free |
693 |
ci->client_index = NETWORK_EMPTY_INDEX; |
693 |
ci->client_index = NETWORK_EMPTY_INDEX; |