From ba8b1e084879cfd57894a4c1dd6b8f6ce5b55d3f Mon Sep 17 00:00:00 2001 From: LJ Sonic Date: Fri, 6 Sep 2024 15:51:57 +0200 Subject: [PATCH] Fix dedicated idling ignoring disconnected players --- src/netcode/d_clisrv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/netcode/d_clisrv.c b/src/netcode/d_clisrv.c index dd4a25be2..d9b26e851 100644 --- a/src/netcode/d_clisrv.c +++ b/src/netcode/d_clisrv.c @@ -1501,8 +1501,8 @@ void NetUpdate(void) INT32 i; boolean empty = true; - for (i = 1; i < MAXNETNODES; i++) - if (netnodes[i].ingame) + for (i = 0; i < MAXPLAYERS; i++) + if (playeringame[i]) { empty = false; break; @@ -1542,7 +1542,7 @@ void NetUpdate(void) { if (dedicatedidle >= dedicatedidletime) { - CONS_Printf("DEDICATED: Awakening from idle (Node detected...)\n"); + CONS_Printf("DEDICATED: Awakening from idle (Player detected...)\n"); dedicatedidle = 0; } }