Updated the SDK with the latest code from the TF and HL2 branches.

This commit is contained in:
Michael Sartain
2014-10-02 08:25:55 -07:00
parent 56accfdb9c
commit 55ed12f8d1
767 changed files with 119642 additions and 122204 deletions
+9 -7
View File
@@ -1149,14 +1149,17 @@ ConVarRef suitcharger( "sk_suitcharger" );
}
}
void StripChar(char *szBuffer, const char cWhiteSpace )
// Strip ' ' and '\n' characters from string.
static void StripWhitespaceChars( char *szBuffer )
{
char *szOut = szBuffer;
while ( char *pSpace = strchr( szBuffer, cWhiteSpace ) )
for ( char *szIn = szOut; *szIn; szIn++ )
{
char *pNextChar = pSpace + sizeof(char);
V_strcpy( pSpace, pNextChar );
if ( *szIn != ' ' && *szIn != '\r' )
*szOut++ = *szIn;
}
*szOut = '\0';
}
void CMultiplayRules::GetNextLevelName( char *pszNextMap, int bufsize, bool bRandom /* = false */ )
@@ -1283,9 +1286,8 @@ ConVarRef suitcharger( "sk_suitcharger" );
{
bool bIgnore = false;
// Strip out the spaces in the name
StripChar( mapList[i] , '\r');
StripChar( mapList[i] , ' ');
// Strip out ' ' and '\r' chars.
StripWhitespaceChars( mapList[i] );
if ( !Q_strncmp( mapList[i], "//", 2 ) || mapList[i][0] == '\0' )
{