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