From 9980631e2f92ce5e88d17d4d0c6a62fb35576106 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 8 Jan 2023 13:58:14 +0000 Subject: [PATCH] Fix bots' `realtime` not ticking upwards when all human players have exited This corrects the issue where bots have the same time on exit as the last human player, and therefore tie with them, with disastrous consequences for GP. --- src/p_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index d626e1e19..c00991850 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -2664,7 +2664,7 @@ static void P_DeathThink(player_t *player) } // Keep time rolling - if (!(exitcountdown && !racecountdown) && !(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock) + if (!(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock) { if (leveltime >= starttime) { @@ -4023,7 +4023,7 @@ void P_PlayerThink(player_t *player) } // Synchronizes the "real" amount of time spent in the level. - if (!(exitcountdown && !racecountdown) && !(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock) + if (!(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock) { if (leveltime >= starttime) {