From a30fbfc917140890c231880eb279bbfa574c058f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 3 Sep 2003 22:32:40 +0000 Subject: [PATCH] tighten up hl texture alignment parsing and don't print "adding 0 texture frames". --- tools/qfbsp/source/map.c | 9 ++++++--- tools/qfbsp/source/writebsp.c | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/qfbsp/source/map.c b/tools/qfbsp/source/map.c index 05877f555..1822bc963 100644 --- a/tools/qfbsp/source/map.c +++ b/tools/qfbsp/source/map.c @@ -385,10 +385,12 @@ ParseBrush (void) vecs[0][2] = atof (token); GetToken (false); vecs[0][3] = atof (token); - // ] GetToken (false); - // [ + if (strcmp (token, "]")) + map_error ("missing ]"); GetToken (false); + if (strcmp (token, "[")) + map_error ("missing ["); // T vector GetToken (false); vecs[1][0] = atof (token); @@ -398,8 +400,9 @@ ParseBrush (void) vecs[1][2] = atof (token); GetToken (false); vecs[1][3] = atof (token); - // ] GetToken (false); + if (strcmp (token, "]")) + map_error ("missing ]"); } else { vecs[0][3] = atof (token); GetToken (false); diff --git a/tools/qfbsp/source/writebsp.c b/tools/qfbsp/source/writebsp.c index 0db519da9..22f81af5a 100644 --- a/tools/qfbsp/source/writebsp.c +++ b/tools/qfbsp/source/writebsp.c @@ -411,7 +411,8 @@ AddAnimatingTextures (void) } } - printf ("added %i texture frames\n", nummiptex - base); + if (nummiptex - base) + printf ("added %i texture frames\n", nummiptex - base); } static void