Don't allow joining 20 sec into the match
This commit is contained in:
parent
2c8bf584e4
commit
d603d48a61
|
@ -4755,6 +4755,8 @@ void K_CheckSpectateStatus(void)
|
||||||
return;
|
return;
|
||||||
if (numingame < 2 || leveltime < starttime || mapreset) // Allow if the match hasn't started yet
|
if (numingame < 2 || leveltime < starttime || mapreset) // Allow if the match hasn't started yet
|
||||||
continue;
|
continue;
|
||||||
|
if (leveltime > 20*TICRATE) // DON'T allow if the match is 20 seconds in
|
||||||
|
return;
|
||||||
if (G_RaceGametype() && players[i].laps) // DON'T allow if the race is at 2 laps
|
if (G_RaceGametype() && players[i].laps) // DON'T allow if the race is at 2 laps
|
||||||
return;
|
return;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue