don't be too fussy when q3bsp2 is around! :P

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4096 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-07-24 00:20:45 +00:00
parent 6b827e89ff
commit 1ee5c4c512
1 changed files with 12 additions and 4 deletions

View File

@ -3547,6 +3547,7 @@ void CMQ3_CalcPHS (void)
qbyte *scan;
int count, vcount;
int numclusters;
qboolean buggytools = false;
Con_DPrintf ("Building PHS...\n");
@ -3594,10 +3595,17 @@ void CMQ3_CalcPHS (void)
// OR this pvs row into the phs
index = (j<<3) + k;
if (index >= numclusters)
Host_Error ("CM_CalcPHS: Bad bit in PVS"); // pad bits should be 0
src = (unsigned int *)(map_q3pvs->data) + index*rowwords;
for (l=0 ; l<rowwords ; l++)
dest[l] |= src[l];
{
if (!buggytools)
Con_Printf ("CM_CalcPHS: Bad bit(s) in PVS (%i >= %i)\n", index, numclusters); // pad bits should be 0
buggytools = true;
}
else
{
src = (unsigned int *)(map_q3pvs->data) + index*rowwords;
for (l=0 ; l<rowwords ; l++)
dest[l] |= src[l];
}
}
}
for (j=0 ; j<numclusters ; j++)