mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Fix dedicated idling ignoring disconnected players
This commit is contained in:
parent
cfb3b45ae4
commit
ba8b1e0848
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue