|
|
@ -1331,7 +1331,8 @@ int ReloadMapCycleFile( const char *filename, mapcycle_t *cycle ) |
|
|
|
hasbuffer = 0; |
|
|
|
hasbuffer = 0; |
|
|
|
|
|
|
|
|
|
|
|
pFileList = COM_Parse( pFileList ); |
|
|
|
pFileList = COM_Parse( pFileList ); |
|
|
|
if( strlen( com_token ) <= 0 ) |
|
|
|
|
|
|
|
|
|
|
|
if( com_token[0] == '\0' ) |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
strcpy( szMap, com_token ); |
|
|
|
strcpy( szMap, com_token ); |
|
|
@ -1340,7 +1341,8 @@ int ReloadMapCycleFile( const char *filename, mapcycle_t *cycle ) |
|
|
|
if( COM_TokenWaiting( pFileList ) ) |
|
|
|
if( COM_TokenWaiting( pFileList ) ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pFileList = COM_Parse( pFileList ); |
|
|
|
pFileList = COM_Parse( pFileList ); |
|
|
|
if( strlen( com_token ) > 0 ) |
|
|
|
|
|
|
|
|
|
|
|
if( com_token[0] != '\0' ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
hasbuffer = 1; |
|
|
|
hasbuffer = 1; |
|
|
|
strcpy( szBuffer, com_token ); |
|
|
|
strcpy( szBuffer, com_token ); |
|
|
@ -1496,7 +1498,8 @@ void ExtractCommandString( char *s, char *szCommand ) |
|
|
|
*o = 0; |
|
|
|
*o = 0; |
|
|
|
|
|
|
|
|
|
|
|
strcat( szCommand, pkey ); |
|
|
|
strcat( szCommand, pkey ); |
|
|
|
if( strlen( value ) > 0 ) |
|
|
|
|
|
|
|
|
|
|
|
if( value[0] != '\0' ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
strcat( szCommand, " " ); |
|
|
|
strcat( szCommand, " " ); |
|
|
|
strcat( szCommand, value ); |
|
|
|
strcat( szCommand, value ); |
|
|
@ -1631,13 +1634,15 @@ void CHalfLifeMultiplay::ChangeLevel( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ALERT( at_console, "PLAYER COUNT: min %i max %i current %i\n", minplayers, maxplayers, curplayers ); |
|
|
|
ALERT( at_console, "PLAYER COUNT: min %i max %i current %i\n", minplayers, maxplayers, curplayers ); |
|
|
|
} |
|
|
|
} |
|
|
|
if( strlen( szRules ) > 0 ) |
|
|
|
|
|
|
|
|
|
|
|
if( szRules != '\0' ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ALERT( at_console, "RULES: %s\n", szRules ); |
|
|
|
ALERT( at_console, "RULES: %s\n", szRules ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
CHANGE_LEVEL( szNextMap, NULL ); |
|
|
|
CHANGE_LEVEL( szNextMap, NULL ); |
|
|
|
if( strlen( szCommands ) > 0 ) |
|
|
|
|
|
|
|
|
|
|
|
if( szCommands[0] != '\0' ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SERVER_COMMAND( szCommands ); |
|
|
|
SERVER_COMMAND( szCommands ); |
|
|
|
} |
|
|
|
} |
|
|
|