From 610f32e334e67bc6b63fc4edf9e29cc9ca0a8304 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 25 Sep 2010 22:30:40 +0900 Subject: [PATCH] Fix a string comparision mistake. This snuck in with the parser changes. --- tools/qflight/source/entities.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/qflight/source/entities.c b/tools/qflight/source/entities.c index 4c727c243..6b49fa511 100644 --- a/tools/qflight/source/entities.c +++ b/tools/qflight/source/entities.c @@ -186,8 +186,8 @@ LoadEntities (void) // go through all the entities while (Script_GetToken (script, 1)) { // parse the opening brace - if (!strcmp (script->token->str, "{")) - fprintf (stderr, "LoadEntities: found %s when expecting {", + if (strcmp (script->token->str, "{")) + fprintf (stderr, "LoadEntities: found %s when expecting {\n", script->token->str); if (num_entities == max_entities) { @@ -248,8 +248,9 @@ LoadEntities (void) } } - if (entity->targetname) - printf ("%s %d %d\n", entity->targetname, entity->light, entity->style); + if (options.verbosity > 1 && entity->targetname) + printf ("%s %d %d\n", entity->targetname, entity->light, + entity->style); // all fields have been parsed if (entity->classname && !strncmp (entity->classname, "light", 5)) {