mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Don't allow the use of the "jump" key while sneaking - Update
This commit is contained in:
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…
x
Reference in New Issue
Block a user