From 322f01f212fbc52b2f6898eb77e6eb9c1f57a540 Mon Sep 17 00:00:00 2001 From: newbytf <109312670+newbytf@users.noreply.github.com> Date: Mon, 26 Aug 2024 15:46:51 -0700 Subject: [PATCH] Deliver _ONE messages to correct spectator(s) (#265) Previously it would only deliver if: (a) you were spectating no one (b) player-0 was getting messages (which you'd then incorrectly receive) Co-authored-by: newby --- engine/server/sv_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/sv_send.c b/engine/server/sv_send.c index 7abd36784..f3cc2ac92 100644 --- a/engine/server/sv_send.c +++ b/engine/server/sv_send.c @@ -737,7 +737,7 @@ void SV_MulticastProtExt(vec3_t origin, multicast_t to, int dimension_mask, int { if (oneclient != split) { - if (andspecs && split->spectator && split->spec_track >= 0 && oneclient == &svs.clients[split->spec_track]) + if (andspecs && split->spectator && split->spec_track > 0 && oneclient == &svs.clients[split->spec_track - 1]) ; else continue;