Disable bot controls after sprint map finish (resolves !260)

This commit is contained in:
AJ Martinez 2022-05-31 16:40:00 -05:00
parent 30f60585be
commit 12563d254a

View file

@ -1292,6 +1292,12 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd)
return; 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); botController = K_FindBotController(player->mo);
if (botController == NULL) if (botController == NULL)
{ {