1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:23:52 +00:00

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

This commit is contained in:
vorenon 2013-08-04 20:10:33 +02:00
parent 56cb36caf1
commit 76a1abe9fa
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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 /* 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). */ * for the initial thrust (which would be carried by "physics" until landing). */
if(!onground) if(!onground || sneak)
vec.z = 0.0f; vec.z = 0.0f;
else if(vec.z > 0.0f) else if(vec.z > 0.0f)
{ {