git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4979 fc73d0e0-1445-4013-8a0c-d673dee63da5

This commit is contained in:
Spoike 2015-09-01 04:51:21 +00:00
parent 8241ed13be
commit c15ce364be

View file

@ -2372,7 +2372,7 @@ void SVQ3_BuildClientSnapshot( client_t *client )
portalarea = CM_PointLeafnum(sv.world.worldmodel, ent->s.origin2);
//merge pvs bits so we can see other ents through it
merge = sv.world.worldmodel->funcs.ClusterPVS(sv.world.worldmodel, CM_LeafCluster(sv.world.worldmodel, portalarea), NULL, 0);
c = (cl.worldmodel->numclusters+31)/32;
c = (sv.world.worldmodel->numclusters+31)/32;
while (c-->0)
((int *)bitvector)[c] |= ((int *)merge)[c];
//and merge areas, so we can see the world too (client will calc its own pvs)