diff --git a/engine/server/sv_ents.c b/engine/server/sv_ents.c index 083f5df2e..7ff5f5799 100644 --- a/engine/server/sv_ents.c +++ b/engine/server/sv_ents.c @@ -45,7 +45,7 @@ int needcleanup; int glowsize, glowcolor; // made it a global variable, to suppress msvc warning. #ifdef Q2BSPS -unsigned int SV_Q2BSP_FatPVS (model_t *mod, vec3_t org, qbyte *resultbuf, unsigned int buffersize) +unsigned int SV_Q2BSP_FatPVS (model_t *mod, vec3_t org, qbyte *resultbuf, unsigned int buffersize, qboolean add) { int leafs[64]; int i, j, count; @@ -76,9 +76,15 @@ unsigned int SV_Q2BSP_FatPVS (model_t *mod, vec3_t org, qbyte *resultbuf, unsig CM_ClusterPVS(mod, leafs[0], resultbuf, buffersize); -// memcpy (resultbuf, CM_ClusterPVS(leafs[0]), longs<<2); + if (!add) + { + memcpy (resultbuf, CM_ClusterPVS(mod, leafs[0], NULL, 0), longs<<2); + i = 1; + } + else + i = 0; // or in all the other leaf bits - for (i=1 ; i