mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 10:53:27 +00:00
Fix an issue with painstate-exiting detection in the boss1 thinker.
This commit is contained in:
parent
9ae750d09c
commit
8605d77af6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue