From: dresk Date: Tue, 24 Apr 2007 16:27:21 +0000 (+0000) Subject: Added standard color escapes to "changed name to" broadcast prints X-Git-Tag: xonotic-v0.1.0preview~3258 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=26011e395e55de4b8245b3245131993cae6e1fd6;p=xonotic%2Fdarkplaces.git Added standard color escapes to "changed name to" broadcast prints git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7180 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index cdf3315a..07c92aa2 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -775,7 +775,7 @@ void Host_Name_f (void) if (strcmp(host_client->old_name, host_client->name)) { if (host_client->spawned) - SV_BroadcastPrintf("%s changed name to %s\n", host_client->old_name, host_client->name); + SV_BroadcastPrintf("%s^%i changed name to %s\n", host_client->old_name, STRING_COLOR_DEFAULT, host_client->name); strlcpy(host_client->old_name, host_client->name, sizeof(host_client->old_name)); // send notification to all clients MSG_WriteByte (&sv.reliable_datagram, svc_updatename); diff --git a/sv_main.c b/sv_main.c index 7af52fdf..f019c4df 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1505,7 +1505,7 @@ void SV_UpdateToReliableMessages (void) if (strcmp(host_client->old_name, host_client->name)) { if (host_client->spawned) - SV_BroadcastPrintf("%s changed name to %s\n", host_client->old_name, host_client->name); + SV_BroadcastPrintf("%s^%i changed name to %s\n", host_client->old_name, STRING_COLOR_DEFAULT, host_client->name); strlcpy(host_client->old_name, host_client->name, sizeof(host_client->old_name)); // send notification to all clients MSG_WriteByte (&sv.reliable_datagram, svc_updatename);