Allow bot control if knocked backwards after sprint finish

This commit is contained in:
AJ Martinez 2022-05-31 21:00:59 -05:00
parent 12563d254a
commit 79cf985380

View file

@ -1292,7 +1292,7 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd)
return; 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 // Sprint map finish, don't give Sal's children migraines trying to pathfind out
return; return;