From fc9adfe423179951aa06a959c79d4dbb4106fefa Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 10 May 2006 06:02:04 +0000 Subject: [PATCH] cleanup of chat prefix character handling, this fixes a bug that was removing quake's brown characters at the beginning of a line git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6355 d7cf8633-e32d-0410-b094-e92efae38249 --- console.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/console.c b/console.c index 80e14462..fee68c0e 100644 --- a/console.c +++ b/console.c @@ -582,23 +582,13 @@ void Con_Print(const char *msg) line[index++] = STRING_COLOR_DEFAULT + '0'; // special color codes for chat messages must always come first // for Con_PrintToHistory to work properly - if (*msg <= 2) + if (*msg == 1 || *msg == 2) { + // play talk wav if (*msg == 1) - { - // play talk wav S_LocalSound ("sound/misc/talk.wav"); - } - //if (gamemode == GAME_NEXUIZ) - //{ - line[index++] = STRING_COLOR_TAG; - line[index++] = '3'; - //} - //else - //{ - // // go to colored text - // mask = 128; - //} + line[index++] = STRING_COLOR_TAG; + line[index++] = '3'; msg++; } // store timestamp -- 2.39.2