mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
Fixed jump fatigue loss formula (fixes #3843)
This commit is contained in:
parent
80d1bb571c
commit
f484ef8ffb
@ -1753,7 +1753,7 @@ void CharacterController::update(float duration)
|
||||
float normalizedEncumbrance = mPtr.getClass().getNormalizedEncumbrance(mPtr);
|
||||
if (normalizedEncumbrance > 1)
|
||||
normalizedEncumbrance = 1;
|
||||
const float fatigueDecrease = fatigueJumpBase + (1 - normalizedEncumbrance) * fatigueJumpMult;
|
||||
const float fatigueDecrease = fatigueJumpBase + normalizedEncumbrance * fatigueJumpMult;
|
||||
|
||||
if (!godmode)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user