From 0ac7268cc5fa250c9a62e97b7705026d989d898f Mon Sep 17 00:00:00 2001 From: Shpoike Date: Tue, 1 Oct 2024 03:43:34 +0100 Subject: [PATCH] Include other proxies in viewer counts, on account of all the people misusing it... --- fteqtv/forward.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fteqtv/forward.c b/fteqtv/forward.c index 5579b2cae..40fd22a76 100644 --- a/fteqtv/forward.c +++ b/fteqtv/forward.c @@ -1047,19 +1047,23 @@ qboolean SV_ReadPendingProxy(cluster_t *cluster, oproxy_t *pend) if (clientversion > 1) { int plyrs = 0; + int prox = 0; int i; + oproxy_t *o; for (i = 0; i < MAX_CLIENTS; i++) { if (*qtv->map.players[i].userinfo) plyrs++; } + for (o = qtv->proxies; o; o = o->next) + prox++; sprintf(tempbuf, "SRCSRV: %s\n", qtv->server); Net_ProxySendString(cluster, pend, tempbuf); sprintf(tempbuf, "SRCHOST: %s\n", qtv->map.hostname); Net_ProxySendString(cluster, pend, tempbuf); sprintf(tempbuf, "SRCPLYRS: %i\n", plyrs); Net_ProxySendString(cluster, pend, tempbuf); - sprintf(tempbuf, "SRCVIEWS: %i\n", qtv->numviewers); + sprintf(tempbuf, "SRCVIEWS: %i\n", qtv->numviewers+prox); Net_ProxySendString(cluster, pend, tempbuf); sprintf(tempbuf, "SRCID: %i\n", qtv->streamid); //final part of each source Net_ProxySendString(cluster, pend, tempbuf);