engine: common: fix for HLBSP extended clipnodes hack when BSP2 support is enabled
This commit is contained in:
parent
cd813bbfbe
commit
754d55beef
1 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ static void Mod_LoadLump( const byte *in, mlumpinfo_t *info, mlumpstat_t *stat,
|
|||
else if( info->lumpnumber == LUMP_CLIPNODES && version != Q1BSP_VERSION )
|
||||
{
|
||||
// never run this check for BSP29 because Arguire QBSP 'broken' clipnodes!
|
||||
if(( l->filelen % info->entrysize ) || ( l->filelen / info->entrysize ) >= MAX_MAP_CLIPNODES )
|
||||
if(( l->filelen % info->entrysize ) || ( l->filelen / info->entrysize ) >= MAX_MAP_CLIPNODES_HLBSP )
|
||||
{
|
||||
real_entrysize = info->entrysize32;
|
||||
SetBits( flags, LUMP_SILENT ); // shut up warning
|
||||
|
@ -2578,7 +2578,7 @@ static void Mod_LoadClipnodes( dbspmodel_t *bmod )
|
|||
|
||||
bmod->clipnodes_out = out = (dclipnode32_t *)Mem_Malloc( loadmodel->mempool, bmod->numclipnodes * sizeof( *out ));
|
||||
|
||||
if(( bmod->version == QBSP2_VERSION ) || ( bmod->version == HLBSP_VERSION && bmod->numclipnodes >= MAX_MAP_CLIPNODES ))
|
||||
if(( bmod->version == QBSP2_VERSION ) || ( bmod->version == HLBSP_VERSION && bmod->numclipnodes >= MAX_MAP_CLIPNODES_HLBSP ))
|
||||
{
|
||||
dclipnode32_t *in = bmod->clipnodes32;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue