mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 11:21:01 +00:00
add sprung flag to steam
This commit is contained in:
parent
760e083c30
commit
c19539248a
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