Corrected an oversight for horizontal springs the introduction of PA_JUMP caused.

This commit is contained in:
toasterbabe 2016-09-08 13:57:43 +01:00
parent 0333c9db94
commit df7b375f05

View file

@ -211,7 +211,7 @@ boolean P_DoSpring(mobj_t *spring, mobj_t *object)
P_SetPlayerMobjState(object, S_PLAY_FALL);
else // horizontal spring
{
if (pflags & (PF_JUMPED|PF_SPINNING) && object->player->panim == PA_ROLL)
if (pflags & (PF_JUMPED|PF_SPINNING) && (object->player->panim == PA_ROLL || object->player->panim == PA_JUMP || object->player->panim == PA_FALL))
object->player->pflags = pflags;
else
P_SetPlayerMobjState(object, S_PLAY_WALK);