From 26011e395e55de4b8245b3245131993cae6e1fd6 Mon Sep 17 00:00:00 2001 From: dresk Date: Tue, 24 Apr 2007 16:27:21 +0000 Subject: [PATCH] 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 --- host_cmd.c | 2 +- sv_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2