mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Fix a string comparision mistake.
This snuck in with the parser changes.
This commit is contained in:
parent
994469fe01
commit
610f32e334
1 changed files with 5 additions and 4 deletions
|
@ -186,8 +186,8 @@ LoadEntities (void)
|
||||||
// go through all the entities
|
// go through all the entities
|
||||||
while (Script_GetToken (script, 1)) {
|
while (Script_GetToken (script, 1)) {
|
||||||
// parse the opening brace
|
// parse the opening brace
|
||||||
if (!strcmp (script->token->str, "{"))
|
if (strcmp (script->token->str, "{"))
|
||||||
fprintf (stderr, "LoadEntities: found %s when expecting {",
|
fprintf (stderr, "LoadEntities: found %s when expecting {\n",
|
||||||
script->token->str);
|
script->token->str);
|
||||||
|
|
||||||
if (num_entities == max_entities) {
|
if (num_entities == max_entities) {
|
||||||
|
@ -248,8 +248,9 @@ LoadEntities (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity->targetname)
|
if (options.verbosity > 1 && entity->targetname)
|
||||||
printf ("%s %d %d\n", entity->targetname, entity->light, entity->style);
|
printf ("%s %d %d\n", entity->targetname, entity->light,
|
||||||
|
entity->style);
|
||||||
|
|
||||||
// all fields have been parsed
|
// all fields have been parsed
|
||||||
if (entity->classname && !strncmp (entity->classname, "light", 5)) {
|
if (entity->classname && !strncmp (entity->classname, "light", 5)) {
|
||||||
|
|
Loading…
Reference in a new issue