From 6e60e823ac94aeed888abbe15ea99f6ede3cc535 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Wed, 14 Oct 2009 18:25:11 +0000 Subject: * Fix cross-compiling (early merge from ioq3 r1667) * Prevent crash when using % in chats, caused by r1784 (Ensiform, Rezyn) * Change default hud color of location text to white, so it doesn't mess up color schemes of maps that have such things on their location ents --- src/qcommon/msg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/qcommon/msg.c b/src/qcommon/msg.c index 9893a65a..f79d6b59 100644 --- a/src/qcommon/msg.c +++ b/src/qcommon/msg.c @@ -312,9 +312,9 @@ void MSG_WriteString( msg_t *sb, const char *s ) { } Q_strncpyz( string, s, sizeof( string ) ); - // get rid of 0x80+ and '%' chars, because old clients don't like them + // get rid of 0x80+ chars, because old clients don't like them for ( i = 0 ; i < l ; i++ ) { - if ( ((byte *)string)[i] > 127 || string[i] == '%' ) { + if ( ((byte *)string)[i] > 127 ) { string[i] = '.'; } } @@ -338,9 +338,9 @@ void MSG_WriteBigString( msg_t *sb, const char *s ) { } Q_strncpyz( string, s, sizeof( string ) ); - // get rid of 0x80+ and '%' chars, because old clients don't like them + // get rid of 0x80+ chars, because old clients don't like them for ( i = 0 ; i < l ; i++ ) { - if ( ((byte *)string)[i] > 127 || string[i] == '%' ) { + if ( ((byte *)string)[i] > 127 ) { string[i] = '.'; } } -- cgit