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 <newby@rakis.net>
This commit is contained in:
newbytf 2024-08-26 15:46:51 -07:00 committed by GitHub
parent 7599872f9c
commit 322f01f212
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;