Added G_SanitiseName fix (Issue 111)

Fixed vote math (Issue 110)
Added random maprotation option (Issue 106)
Updated wiki/Changelog.wiki and wiki/flags.wiki to match new release-mingw32-x86
This commit is contained in:
Paradox460 committed 2008-06-07 16:55:08 +00:00
1 parent fbb833cc5f
commit 22e70be40f
5 files changed
+138 -9

No files matched your search

+3 -1
View File
@@ -34,8 +34,9 @@ void G_SanitiseName( char *in, char *out )
{
qboolean skip = qtrue;
int spaces = 0;
int out_len = 0;
while( *in )
while( *in && out_len < MAX_NAME_LENGTH - 1 )
{
// strip leading white space
if( *in == ' ' )
@@ -66,6 +67,7 @@ void G_SanitiseName( char *in, char *out )
}
*out++ = tolower( *in++ );
out_len++;
}
out -= spaces;
*out = 0;