* (bug 3393) Blank user names still possible (Michael Jard <kfaust@gmail.com>)

* (bug 3363) Download percentage overflow (Martin Doucha <next_ghost@quick.cz>)
* (bug 3390) MSVC project (Julian Priestley <juzley@gmail.com>)
* For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0
This commit is contained in:
Tim Angus 2007-11-02 23:36:23 +00:00
parent 881988636a
commit 31c24bd0d2
25 changed files with 10014 additions and 103 deletions

View file

@ -629,7 +629,7 @@ static void ClientCleanName( const char *in, char *out, int outSize ) {
}
// don't allow leading spaces
if( !*p && ch == ' ' ) {
if( colorlessLen == 0 && ch == ' ' ) {
continue;
}
@ -658,11 +658,15 @@ static void ClientCleanName( const char *in, char *out, int outSize ) {
}
// don't allow too many consecutive spaces
// don't count spaces in colorlessLen
if( ch == ' ' ) {
spaces++;
if( spaces > 3 ) {
continue;
}
*out++ = ch;
len++;
continue;
}
else {
spaces = 0;