tighten up hl texture alignment parsing and don't print

"adding 0 texture frames".
This commit is contained in:
Bill Currie 2003-09-03 22:32:40 +00:00
parent 0a8867fde9
commit a30fbfc917
2 changed files with 8 additions and 4 deletions

View File

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

View File

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