Don't calculate battle wanted in p_ticker if wanted isn't on

This commit is contained in:
NepDisk 2025-09-27 09:50:00 -04:00
parent e4a9561261
commit 44ec1d9ef5
2 changed files with 2 additions and 3 deletions

View file

@ -8203,8 +8203,7 @@ static void P_InitLevelSettings(boolean reloadinggamestate)
comeback = (boolean)cv_kartcomeback.value;
}
for (i = 0; i < 4; i++)
battlewanted[i] = -1;
memset(battlewanted, -1, sizeof (battlewanted));
mostwanted = -1;

View file

@ -887,7 +887,7 @@ void P_Ticker(boolean run)
K_BossInfoTicker();
if ((gametyperules & GTR_BUMPERS))
if (gametyperules & GTR_WANTED)
{
if (wantedcalcdelay && --wantedcalcdelay <= 0)
K_CalculateBattleWanted();