Don't calculate battle wanted in p_ticker if wanted isn't on
This commit is contained in:
parent
e4a9561261
commit
44ec1d9ef5
2 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue