Merge branch 'fix-debug-bots-while-paused' into 'master'

debugbots: do not spawn prediction mobjs while game is paused

Closes #892

See merge request KartKrew/Kart!1815
This commit is contained in:
Oni 2024-01-12 03:21:44 +00:00
commit 344d8d9642

View file

@ -1854,7 +1854,7 @@ static void K_BuildBotTiccmdNormal(const player_t *player, ticcmd_t *cmd)
// Free the prediction we made earlier
if (predict != nullptr)
{
if (cv_kartdebugbots.value != 0 && player - players == displayplayers[0])
if (cv_kartdebugbots.value != 0 && player - players == displayplayers[0] && !(paused || P_AutoPause()))
{
K_DrawPredictionDebug(predict, player);
}