Merge branch 'steamed' into 'next'

Make steam apply sprung flag

See merge request STJr/SRB2!1365
This commit is contained in:
Lach 2021-05-10 08:39:06 -04:00
commit 5fb4b34f8c

View file

@ -511,6 +511,7 @@ static void P_DoFanAndGasJet(mobj_t *spring, mobj_t *object)
if (spring->state != &states[S_STEAM1]) // Only when it bursts
break;
object->eflags |= MFE_SPRUNG;
object->momz = flipval*FixedMul(speed, FixedSqrt(FixedMul(spring->scale, object->scale))); // scale the speed with both objects' scales, just like with springs!
if (p)