mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-22 07:52:30 +00:00
Do not spam player quit net commands
This commit is contained in:
parent
bb157866b7
commit
a04004071b
1 changed files with 2 additions and 1 deletions
|
|
@ -603,7 +603,8 @@ void P_Ticker(boolean run)
|
||||||
if (players[i].quittime == 30 * TICRATE)
|
if (players[i].quittime == 30 * TICRATE)
|
||||||
P_CheckSurvivors();
|
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);
|
SendKick(i, KICK_MSG_PLAYER_QUIT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue