add sprung flag to steam

# Conflicts:
#	src/p_map.c
This commit is contained in:
toaster 2022-03-18 13:39:19 +00:00
parent 19a4ef23c2
commit 3c83508646

View file

@ -493,12 +493,11 @@ static void P_DoFanAndGasJet(mobj_t *spring, mobj_t *object)
break;
if (spring->state != &states[S_STEAM1]) // Only when it bursts
break;
if (spring->spawnpoint && spring->spawnpoint->options & MTF_OBJECTSPECIAL)
{
if (object->eflags & MFE_SPRUNG)
break;
if (spring->spawnpoint && spring->spawnpoint->options & MTF_OBJECTSPECIAL)
{
if (object->player)
{
object->player->trickpanel = 1;
@ -506,10 +505,13 @@ static void P_DoFanAndGasJet(mobj_t *spring, mobj_t *object)
}
K_DoPogoSpring(object, 32<<FRACBITS, 0);
return;
}
else
{
object->momz = flipval*FixedMul(speed, FixedSqrt(FixedMul(spring->scale, object->scale))); // scale the speed with both objects' scales, just like with springs!
}
object->eflags |= MFE_SPRUNG;
break;
default:
break;