From 6e09a5fb4af2ac97330020f92172c5a712b84356 Mon Sep 17 00:00:00 2001 From: Emanuel Guevel Date: Wed, 2 Oct 2013 22:36:28 +0200 Subject: [PATCH] Acrobatics: reinit fall height at current height rather than zero To prevent problems. --- apps/openmw/mwmechanics/character.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index 5b4d316e51..0924e36b9a 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -769,7 +769,7 @@ void CharacterController::update(float duration) if(sneak || inwater || flying) { vec.z = 0.0f; - mFallHeight = 0.0f; + mFallHeight = mPtr.getRefData().getPosition().pos[2]; } if(!onground && !flying && !inwater) @@ -854,7 +854,7 @@ void CharacterController::update(float duration) } } - mFallHeight = 0; + mFallHeight = mPtr.getRefData().getPosition().pos[2]; } else {