mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
Correct miptex byte-count scaling factor.
This commit is contained in:
parent
faf63e60c2
commit
0082b93283
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ wad_extract (wad_t *wad, lumpinfo_t *pf)
|
||||||
width = LittleLong (miptex->width);
|
width = LittleLong (miptex->width);
|
||||||
height = LittleLong (miptex->height);
|
height = LittleLong (miptex->height);
|
||||||
if (width > (unsigned) pf->size || height > (unsigned) pf->size
|
if (width > (unsigned) pf->size || height > (unsigned) pf->size
|
||||||
|| (width * height * 3 / 2
|
|| (width * height * 85 / 64
|
||||||
+ sizeof (miptex_t)) > (unsigned) pf->size) {
|
+ sizeof (miptex_t)) > (unsigned) pf->size) {
|
||||||
if (options.verbosity)
|
if (options.verbosity)
|
||||||
fprintf (stderr, "bogus MIPTEX. treating as raw data\n");
|
fprintf (stderr, "bogus MIPTEX. treating as raw data\n");
|
||||||
|
|
Loading…
Reference in a new issue