Fix dedicated idling ignoring disconnected players

This commit is contained in:
LJ Sonic 2024-09-06 15:51:57 +02:00
parent cfb3b45ae4
commit ba8b1e0848

View file

@ -1501,8 +1501,8 @@ void NetUpdate(void)
INT32 i; INT32 i;
boolean empty = true; boolean empty = true;
for (i = 1; i < MAXNETNODES; i++) for (i = 0; i < MAXPLAYERS; i++)
if (netnodes[i].ingame) if (playeringame[i])
{ {
empty = false; empty = false;
break; break;
@ -1542,7 +1542,7 @@ void NetUpdate(void)
{ {
if (dedicatedidle >= dedicatedidletime) if (dedicatedidle >= dedicatedidletime)
{ {
CONS_Printf("DEDICATED: Awakening from idle (Node detected...)\n"); CONS_Printf("DEDICATED: Awakening from idle (Player detected...)\n");
dedicatedidle = 0; dedicatedidle = 0;
} }
} }