diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-14 18:25:11 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:49 +0000 |
commit | 6e60e823ac94aeed888abbe15ea99f6ede3cc535 (patch) | |
tree | c8a21b0472a22b3d99fa74f4edeb534aa65cffc3 /src/qcommon/msg.c | |
parent | 6efd4cef3cfcc44d6727cb0e54da26fbb74a7533 (diff) |
* 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
Diffstat (limited to 'src/qcommon/msg.c')
-rw-r--r-- | src/qcommon/msg.c | 8 |
1 files changed, 4 insertions, 4 deletions
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] = '.'; } } |