diff --git a/src/k_bot.c b/src/k_bot.c index b2115bbea..2b266c470 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -1292,6 +1292,12 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd) return; } + if (player->exiting && ((mapheaderinfo[gamemap - 1]->levelflags & LF_SECTIONRACE) == LF_SECTIONRACE)) + { + // Sprint map finish, don't give Sal's children migraines trying to pathfind out + return; + } + botController = K_FindBotController(player->mo); if (botController == NULL) {