mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Merge branch 'steamed' into 'next'
Make steam apply sprung flag See merge request STJr/SRB2!1365
This commit is contained in:
commit
5fb4b34f8c
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue