mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 16:00:56 +00:00
Daikatana fix search BSPX header
This commit is contained in:
parent
d5515c8525
commit
893abc564a
1 changed files with 8 additions and 1 deletions
|
@ -2007,7 +2007,14 @@ Mod_LoadBSPX(int filesize, const byte *mod_base)
|
|||
// find end of last lump
|
||||
header = (dheader_t*)mod_base;
|
||||
xofs = 0;
|
||||
for (i = 0; i < HEADER_LUMPS; i++) {
|
||||
|
||||
numlumps = HEADER_LUMPS;
|
||||
if (header->version == BSPDKMVERSION)
|
||||
{
|
||||
numlumps = 21;
|
||||
}
|
||||
|
||||
for (i = 0; i < numlumps; i++) {
|
||||
xofs = max(xofs,
|
||||
(header->lumps[i].fileofs + header->lumps[i].filelen + 3) & ~3);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue