Fix an issue with painstate-exiting detection in the boss1 thinker.

This commit is contained in:
toaster 2019-08-12 18:49:58 +01:00
parent 9ae750d09c
commit 8605d77af6
1 changed files with 1 additions and 1 deletions

View File

@ -4258,7 +4258,7 @@ static void P_GenericBossThinker(mobj_t *mobj)
// AI for the first boss.
static void P_Boss1Thinker(mobj_t *mobj)
{
if (mobj->flags2 & MF2_FRET && (statenum_t)(mobj->state-states) < mobj->info->painstate) {
if (mobj->flags2 & MF2_FRET && mobj->state->nextstate == mobj->info->spawnstate && mobj->tics == 1) {
mobj->flags2 &= ~(MF2_FRET|MF2_SKULLFLY);
mobj->momx = mobj->momy = mobj->momz = 0;
}