1
0
Fork 0
forked from fte/fteqw

Fix for recent PVS issues.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1264 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-08-30 00:12:49 +00:00
parent 89b6b96297
commit 02ba159623

View file

@ -457,7 +457,6 @@ void SV_MulticastProtExt(vec3_t origin, multicast_t to, int dimension_mask, int
{
client_t *client;
qbyte *mask;
mleaf_t *leaf;
int leafnum;
int j;
qboolean reliable;
@ -647,13 +646,13 @@ void SV_MulticastProtExt(vec3_t origin, multicast_t to, int dimension_mask, int
if (!((int)client->edict->v->dimension_see & dimension_mask))
continue;
leafnum = sv.worldmodel->funcs.LeafnumForPoint (sv.worldmodel, client->edict->v->origin);
{
// -1 is because pvs rows are 1 based, not 0 based like leafs
// leafnum = leaf - sv.worldmodel->leafs - 1;
if (mask != sv.pvs)
{
leafnum = sv.worldmodel->funcs.LeafnumForPoint (sv.worldmodel, client->edict->v->origin)-1;
if ( !(mask[leafnum>>3] & (1<<(leafnum&7)) ) )
{
// Con_Printf ("supressed multicast\n");
// Con_Printf ("PVS supressed multicast\n");
continue;
}
}