Fix a string comparision mistake.

This snuck in with the parser changes.
This commit is contained in:
Bill Currie 2010-09-25 22:30:40 +09:00
parent 994469fe01
commit 610f32e334

View file

@ -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)) {