Also fix STJr/SRB2#618 since it is highly related.

This commit is contained in:
Arthur 2023-01-02 08:07:13 -05:00
parent af146071d8
commit 28f97dcd0b

View file

@ -425,6 +425,12 @@ boolean P_DoSpring(mobj_t *spring, mobj_t *object)
if (wasSpindashing) // Ensure we're in the rolling state, and not spindash.
P_SetPlayerMobjState(object, S_PLAY_ROLL);
if (object->player->charability == CA_GLIDEANDCLIMB && object->player->skidtime && (pflags & PF_JUMPED))
{
object->player->skidtime = 0; // No skidding should be happening, either.
pflags &= ~PF_JUMPED;
}
}
secondjump = object->player->secondjump;
washoming = object->player->homing;