mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-21 18:32:08 +00:00
Do not spam player quit net commands
This commit is contained in:
parent
b0b22b53d6
commit
ba127008cf
1 changed files with 2 additions and 1 deletions
|
@ -603,7 +603,8 @@ void P_Ticker(boolean run)
|
|||
if (players[i].quittime == 30 * TICRATE)
|
||||
P_CheckSurvivors();
|
||||
|
||||
if (server && players[i].quittime >= FixedMul(cv_rejointimeout.value, 60 * TICRATE))
|
||||
if (server && players[i].quittime >= FixedMul(cv_rejointimeout.value, 60 * TICRATE)
|
||||
&& !(players[i].quittime % TICRATE))
|
||||
SendKick(i, KICK_MSG_PLAYER_QUIT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue