]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Added standard color escapes to "changed name to" broadcast prints
authordresk <dresk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 24 Apr 2007 16:27:21 +0000 (16:27 +0000)
committerdresk <dresk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 24 Apr 2007 16:27:21 +0000 (16:27 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7180 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c
sv_main.c

index cdf3315a192565d09141fe181c7f17dbe05bbb15..07c92aa22b8f7b904e0c169f9750e0c9fee37c08 100644 (file)
@@ -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);
index 7af52fdf2ddd07d68a7c33e2fa020b480cd1a791..f019c4dfea394aa54c73ae3422097e19f671effd 100644 (file)
--- 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);