mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Acrobatics: reinit fall height at current height rather than zero
To prevent problems.
This commit is contained in:
parent
2b992ef3b5
commit
6e09a5fb4a
@ -769,7 +769,7 @@ void CharacterController::update(float duration)
|
|||||||
if(sneak || inwater || flying)
|
if(sneak || inwater || flying)
|
||||||
{
|
{
|
||||||
vec.z = 0.0f;
|
vec.z = 0.0f;
|
||||||
mFallHeight = 0.0f;
|
mFallHeight = mPtr.getRefData().getPosition().pos[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!onground && !flying && !inwater)
|
if(!onground && !flying && !inwater)
|
||||||
@ -854,7 +854,7 @@ void CharacterController::update(float duration)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mFallHeight = 0;
|
mFallHeight = mPtr.getRefData().getPosition().pos[2];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user