mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
tighten up hl texture alignment parsing and don't print
"adding 0 texture frames".
This commit is contained in:
parent
0a8867fde9
commit
a30fbfc917
2 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue