From a9897b7d4e573c94c17a185ed41a42c06e423e0e Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 19 May 2021 04:50:06 +0000 Subject: [PATCH] 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 --- engine/server/sv_send.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/server/sv_send.c b/engine/server/sv_send.c index 5eec046e8..082bd4c2e 100644 --- a/engine/server/sv_send.c +++ b/engine/server/sv_send.c @@ -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: