From: havoc Date: Wed, 10 May 2006 06:02:04 +0000 (+0000) Subject: cleanup of chat prefix character handling, this fixes a bug that was removing quake... X-Git-Tag: xonotic-v0.1.0preview~4011 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc9adfe423179951aa06a959c79d4dbb4106fefa;p=xonotic%2Fdarkplaces.git 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 --- 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