Try to reduce warning spam.
This commit is contained in:
parent
695b979af9
commit
5082928f36
1 changed files with 1 additions and 1 deletions
|
@ -2625,7 +2625,7 @@ bspx_header_t *BSPX_Setup(model_t *mod, char *filebase, size_t filelen, lump_t *
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offs < filelen && mod && !mod->archive && mod_loadmappackages.ival)
|
if (offs < filelen && mod && !mod->archive && mod_loadmappackages.ival && filelen-offs > 22)//end-of-central-dir being 22 bytes sets a minimum zip size, which should slightly reduce false-positives.
|
||||||
{ //we have some sort of trailing junk... is it a zip?...
|
{ //we have some sort of trailing junk... is it a zip?...
|
||||||
Mod_LoadMapArchive(mod, filebase+offs, filelen-offs);
|
Mod_LoadMapArchive(mod, filebase+offs, filelen-offs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue