Don't allow the use of the "jump" key while sneaking - Update

actorid
vorenon 12 years ago
parent 56cb36caf1
commit 76a1abe9fa

@ -357,7 +357,7 @@ namespace MWInput
mPlayer.setSneak(actionIsActive(A_Sneak));
if (actionIsActive(A_Jump) && mControlSwitch["playerjumping"] && !actionIsActive(A_Sneak))
if (actionIsActive(A_Jump) && mControlSwitch["playerjumping"])
{
mPlayer.setUpDown (1);
triedToMove = true;

@ -650,7 +650,7 @@ void CharacterController::update(float duration, Movement &movement)
/* FIXME: The state should be set to Jump, and X/Y movement should be disallowed except
* for the initial thrust (which would be carried by "physics" until landing). */
if(!onground)
if(!onground || sneak)
vec.z = 0.0f;
else if(vec.z > 0.0f)
{

Loading…
Cancel
Save