mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
debugbots: do not spawn prediction mobjs while game is paused
Ticcmd code runs while the game is paused, so this leads to infinite mobjs being spawned without being cleaned up.
This commit is contained in:
parent
b932e23187
commit
076e2ad650
1 changed files with 1 additions and 1 deletions
|
|
@ -1854,7 +1854,7 @@ static void K_BuildBotTiccmdNormal(const player_t *player, ticcmd_t *cmd)
|
||||||
// Free the prediction we made earlier
|
// Free the prediction we made earlier
|
||||||
if (predict != nullptr)
|
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);
|
K_DrawPredictionDebug(predict, player);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue