mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'hangster-fix' into 'next'
Prevent Hangsters from sliding across the ceiling Closes #787 See merge request STJr/SRB2!1766
This commit is contained in:
commit
563ae7f7ac
1 changed files with 3 additions and 0 deletions
|
@ -8434,7 +8434,10 @@ static boolean P_HangsterThink(mobj_t *mobj)
|
|||
}
|
||||
//after swooping back up, check for ceiling
|
||||
else if ((st == S_HANGSTER_RETURN1 || st == S_HANGSTER_RETURN2) && mobj->momz == 0 && mobj->ceilingz == (mobj->z + mobj->height))
|
||||
{
|
||||
P_SetMobjState(mobj, (st = S_HANGSTER_RETURN3));
|
||||
mobj->momx = mobj->momy = 0;
|
||||
}
|
||||
|
||||
//should you roost on a ceiling with F_SKY1 as its flat, disappear forever
|
||||
if (st == S_HANGSTER_RETURN3 && mobj->momz == 0 && mobj->ceilingz == (mobj->z + mobj->height)
|
||||
|
|
Loading…
Reference in a new issue