summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2010-10-21 00:48:36 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:42 +0000
commit42b4a8535ff9a0983d2a31f512c86ec8f8e9d224 (patch)
tree999f28d78e6fb034ce53f6d56afe21d6df2a12b9 /src
parente76d590dc99030ce2756640954f81da1d354ed76 (diff)
* (bug 4694) Reallow black in names, map it to inverse in com_ansicolor
Diffstat (limited to 'src')
-rw-r--r--src/game/g_client.c6
-rw-r--r--src/sys/sys_main.c2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 2ac76c73..173d2976 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -850,11 +850,7 @@ static void G_ClientCleanName( const char *in, char *out, int outSize )
*out++ = Q_COLOR_ESCAPE;
- // don't allow black in a name, period
- if( ColorIndex( *in ) == 0 )
- *out++ = COLOR_WHITE;
- else
- *out++ = *in;
+ *out++ = *in;
len += 2;
continue;
diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c
index f76cb014..f1aa6fa8 100644
--- a/src/sys/sys_main.c
+++ b/src/sys/sys_main.c
@@ -211,7 +211,7 @@ void Sys_AnsiColorPrint( const char *msg )
int length = 0;
static int q3ToAnsi[ 8 ] =
{
- 30, // COLOR_BLACK
+ 7, // COLOR_BLACK
31, // COLOR_RED
32, // COLOR_GREEN
33, // COLOR_YELLOW