SPB: only stop thinking if chase targt hitlag is >0

- Mobjs only actually freeze if hitlag >0
- This will probably stop something like 061e3c282
  happening to SPB again
This commit is contained in:
James R 2024-03-08 06:10:43 -08:00
parent 061e3c282c
commit 9c436763c2

View file

@ -679,7 +679,7 @@ static void SPBChase(mobj_t *spb, mobj_t *bestMobj)
return;
}
if (chase->hitlag)
if (chase->hitlag > 0)
{
// If the player is frozen, the SPB should be too.
spb->hitlag = max(spb->hitlag, chase->hitlag);