Do not spam player quit net commands

This commit is contained in:
Louis-Antoine 2020-01-23 19:59:41 +01:00
parent b0b22b53d6
commit ba127008cf
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}