Fix possible fall damage when switching from falling to flying

pull/1465/head
scrawl 7 years ago
parent 00034192dc
commit d294d7e284

@ -1754,7 +1754,7 @@ void CharacterController::update(float duration)
}
}
}
else if(mJumpState == JumpState_InAir && !inwater)
else if(mJumpState == JumpState_InAir && !inwater && !flying)
{
forcestateupdate = true;
jumpstate = JumpState_Landing;

Loading…
Cancel
Save