From 79cf985380056a78548613875ce942e9e8ee2842 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Tue, 31 May 2022 21:00:59 -0500 Subject: [PATCH] Allow bot control if knocked backwards after sprint finish --- src/k_bot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_bot.c b/src/k_bot.c index 2b266c470..0ae14c50e 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -1292,7 +1292,7 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd) return; } - if (player->exiting && ((mapheaderinfo[gamemap - 1]->levelflags & LF_SECTIONRACE) == LF_SECTIONRACE)) + if (player->exiting && player->nextwaypoint == K_GetFinishLineWaypoint() && ((mapheaderinfo[gamemap - 1]->levelflags & LF_SECTIONRACE) == LF_SECTIONRACE)) { // Sprint map finish, don't give Sal's children migraines trying to pathfind out return;