diff --git a/src/netcode/d_clisrv.c b/src/netcode/d_clisrv.c index 5fee506af..dd4a25be2 100644 --- a/src/netcode/d_clisrv.c +++ b/src/netcode/d_clisrv.c @@ -1500,18 +1500,15 @@ void NetUpdate(void) { INT32 i; - for (i = 1; i < MAXNETNODES; ++i) + boolean empty = true; + for (i = 1; i < MAXNETNODES; i++) if (netnodes[i].ingame) { - if (dedicatedidle >= dedicatedidletime) - { - CONS_Printf("DEDICATED: Awakening from idle (Node %d detected...)\n", i); - dedicatedidle = 0; - } + empty = false; break; } - if (i == MAXNETNODES) + if (empty) { if (leveltime == 2) { @@ -1541,6 +1538,14 @@ void NetUpdate(void) dedicatedidle = dedicatedidletime; } } + else + { + if (dedicatedidle >= dedicatedidletime) + { + CONS_Printf("DEDICATED: Awakening from idle (Node detected...)\n"); + dedicatedidle = 0; + } + } } else {