mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 15:21:44 +00:00
Fix Hunk size calculation introdused in 371fb99c
Used LUMP_LEAFS instead LUMP_TEXINFO.
This commit is contained in:
parent
d26c9275f9
commit
bd19960ddf
1 changed files with 2 additions and 3 deletions
|
@ -1913,10 +1913,9 @@ CM_LoadMap(char *name, qboolean clientload, unsigned *checksum)
|
||||||
/* load into heap */
|
/* load into heap */
|
||||||
strcpy(cmod.name, name);
|
strcpy(cmod.name, name);
|
||||||
|
|
||||||
/* FIXME: code has some bug in calculation */
|
int hunkSize = 0;
|
||||||
int hunkSize = 1024 * 1024 * 4;
|
|
||||||
|
|
||||||
hunkSize += Mod_CalcLumpHunkSize(&header.lumps[LUMP_LEAFS],
|
hunkSize += Mod_CalcLumpHunkSize(&header.lumps[LUMP_TEXINFO],
|
||||||
sizeof(texinfo_t), sizeof(mapsurface_t), 0);
|
sizeof(texinfo_t), sizeof(mapsurface_t), 0);
|
||||||
|
|
||||||
if (header.ident == IDBSPHEADER)
|
if (header.ident == IDBSPHEADER)
|
||||||
|
|
Loading…
Reference in a new issue