CSMultiplayerRules: no more DeathChecks when the round is already over

This commit is contained in:
Marco Cawthorne 2024-01-04 14:13:49 -08:00
parent c33d084a0c
commit d2e841d964
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 0 deletions

View File

@ -749,6 +749,9 @@ CSMultiplayerRules::CountPlayers(void)
void
CSMultiplayerRules::DeathCheck(NSClientPlayer pl)
{
if (g_cs_gamestate == GAME_END)
return;
/* hack so that we can kill rounds */
if ((g_cs_alive_t == 0) && (g_cs_alive_ct == 0)) {
g_cs_gamestate = GAME_ACTIVE;