summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/renderergl2/tr_bsp.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/renderergl2/tr_bsp.c b/src/renderergl2/tr_bsp.c
index 3a38c9e5..75b2d1f5 100644
--- a/src/renderergl2/tr_bsp.c
+++ b/src/renderergl2/tr_bsp.c
@@ -2750,7 +2750,8 @@ qboolean R_ParseSpawnVars( char *spawnVarChars, int maxSpawnVarChars, int *numSp
return qfalse;
}
if ( com_token[0] != '{' ) {
- ri.Printf( PRINT_ALL, "R_ParseSpawnVars: found %s when expecting {",com_token );
+ ri.Printf( PRINT_ALL, "R_ParseSpawnVars: found %s when expecting {\n",com_token );
+ return qfalse;
}
// go through all the key / value pairs
@@ -2759,7 +2760,8 @@ qboolean R_ParseSpawnVars( char *spawnVarChars, int maxSpawnVarChars, int *numSp
// parse key
if ( !R_GetEntityToken( keyname, sizeof( keyname ) ) ) {
- ri.Printf( PRINT_ALL, "R_ParseSpawnVars: EOF without closing brace" );
+ ri.Printf( PRINT_ALL, "R_ParseSpawnVars: EOF without closing brace\n" );
+ return qfalse;
}
if ( keyname[0] == '}' ) {
@@ -2768,18 +2770,18 @@ qboolean R_ParseSpawnVars( char *spawnVarChars, int maxSpawnVarChars, int *numSp
// parse value
if ( !R_GetEntityToken( com_token, sizeof( com_token ) ) ) {
- ri.Printf( PRINT_ALL, "R_ParseSpawnVars: EOF without closing brace" );
- break;
+ ri.Printf( PRINT_ALL, "R_ParseSpawnVars: EOF without closing brace\n" );
+ return qfalse;
}
if ( com_token[0] == '}' ) {
- ri.Printf( PRINT_ALL, "R_ParseSpawnVars: closing brace without data" );
- break;
+ ri.Printf( PRINT_ALL, "R_ParseSpawnVars: closing brace without data\n" );
+ return qfalse;
}
if ( *numSpawnVars == MAX_SPAWN_VARS ) {
- ri.Printf( PRINT_ALL, "R_ParseSpawnVars: MAX_SPAWN_VARS" );
- break;
+ ri.Printf( PRINT_ALL, "R_ParseSpawnVars: MAX_SPAWN_VARS\n" );
+ return qfalse;
}
keyLength = strlen(keyname) + 1;
@@ -2787,8 +2789,8 @@ qboolean R_ParseSpawnVars( char *spawnVarChars, int maxSpawnVarChars, int *numSp
if (numSpawnVarChars + keyLength + tokenLength > maxSpawnVarChars)
{
- ri.Printf( PRINT_ALL, "R_ParseSpawnVars: MAX_SPAWN_VAR_CHARS" );
- break;
+ ri.Printf( PRINT_ALL, "R_ParseSpawnVars: MAX_SPAWN_VAR_CHARS\n" );
+ return qfalse;
}
strcpy(spawnVarChars + numSpawnVarChars, keyname);