Make multicast respond to sv_nopvs too.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5862 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
9af3e9b307
commit
a9897b7d4e
1 changed files with 3 additions and 2 deletions
|
@ -528,6 +528,7 @@ void SV_MulticastProtExt(vec3_t origin, multicast_t to, int dimension_mask, int
|
|||
client_t *oneclient = NULL, *split;
|
||||
int seat;
|
||||
qboolean andspecs = false;
|
||||
extern cvar_t sv_nopvs;
|
||||
|
||||
if (!sv.multicast.cursize
|
||||
#ifdef NQPROT
|
||||
|
@ -601,7 +602,7 @@ void SV_MulticastProtExt(vec3_t origin, multicast_t to, int dimension_mask, int
|
|||
case MULTICAST_PHS:
|
||||
leafnum = CM_PointLeafnum (sv.world.worldmodel, origin);
|
||||
cluster = CM_LeafCluster (sv.world.worldmodel, leafnum);
|
||||
mask = CM_ClusterPHS (sv.world.worldmodel, cluster, NULL);
|
||||
mask = sv_nopvs.ival?NULL:CM_ClusterPHS (sv.world.worldmodel, cluster, NULL);
|
||||
break;
|
||||
|
||||
case MULTICAST_PVS_R:
|
||||
|
@ -609,7 +610,7 @@ void SV_MulticastProtExt(vec3_t origin, multicast_t to, int dimension_mask, int
|
|||
case MULTICAST_PVS:
|
||||
leafnum = CM_PointLeafnum (sv.world.worldmodel, origin);
|
||||
cluster = CM_LeafCluster (sv.world.worldmodel, leafnum);
|
||||
mask = CM_ClusterPVS (sv.world.worldmodel, cluster, NULL, PVM_FAST);
|
||||
mask = sv_nopvs.ival?NULL:CM_ClusterPVS (sv.world.worldmodel, cluster, NULL, PVM_FAST);
|
||||
break;
|
||||
|
||||
case MULTICAST_ONE_R_NOSPECS:
|
||||
|
|
Loading…
Reference in a new issue