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