else
other.lastteleporttime = time;
- if (other.crouch)
+ if (!other.animstate_override)
{
- setanim(other, other.anim_duckjump, FALSE, TRUE, other.restart_jump);
- other.restart_jump = FALSE;
- }
- else
- {
- setanim(other, other.anim_jump, FALSE, TRUE, other.restart_jump);
- other.restart_jump = FALSE;
+ if (other.crouch)
+ setanim(other, other.anim_duckjump, TRUE, TRUE, TRUE);
+ else
+ setanim(other, other.anim_jump, TRUE, TRUE, TRUE);
}
}
else