From e4a5f2103fdf9f5621aa88de0214d486d2c341ea Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Wed, 3 Jul 2019 17:41:11 -0700
Subject: [PATCH] Convert caret color codes to SRB2 color codes

---
 src/d_clisrv.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/d_clisrv.c b/src/d_clisrv.c
index 9ae3a24f8..c38620d0c 100644
--- a/src/d_clisrv.c
+++ b/src/d_clisrv.c
@@ -3932,12 +3932,15 @@ static void HandleTimeout(SINT8 node)
   */
 static void HandleServerInfo(SINT8 node)
 {
+	char servername[MAXSERVERNAME];
 	// compute ping in ms
 	const tic_t ticnow = I_GetTime();
 	const tic_t ticthen = (tic_t)LONG(netbuffer->u.serverinfo.time);
 	const tic_t ticdiff = (ticnow - ticthen)*1000/NEWTICRATE;
 	netbuffer->u.serverinfo.time = (tic_t)LONG(ticdiff);
 	netbuffer->u.serverinfo.servername[MAXSERVERNAME-1] = 0;
+	memcpy(servername, netbuffer->u.serverinfo.servername, MAXSERVERNAME);
+	CopyCaretColors(netbuffer->u.serverinfo.servername, servername, MAXSERVERNAME);
 	netbuffer->u.serverinfo.gametype = (UINT8)((netbuffer->u.serverinfo.gametype == VANILLA_GT_MATCH) ? GT_MATCH : GT_RACE);
 
 	SL_InsertServer(&netbuffer->u.serverinfo, node);
-- 
GitLab