forked from mirror/openmw-tes3mp
Merge pull request #1296 from akortunov/jumpfatiguefix
Fixed jump fatigue loss formula (bug #3843)
This commit is contained in:
commit
98daf4f043
1 changed files with 1 additions and 1 deletions
|
@ -1753,7 +1753,7 @@ void CharacterController::update(float duration)
|
||||||
float normalizedEncumbrance = mPtr.getClass().getNormalizedEncumbrance(mPtr);
|
float normalizedEncumbrance = mPtr.getClass().getNormalizedEncumbrance(mPtr);
|
||||||
if (normalizedEncumbrance > 1)
|
if (normalizedEncumbrance > 1)
|
||||||
normalizedEncumbrance = 1;
|
normalizedEncumbrance = 1;
|
||||||
const float fatigueDecrease = fatigueJumpBase + (1 - normalizedEncumbrance) * fatigueJumpMult;
|
const float fatigueDecrease = fatigueJumpBase + normalizedEncumbrance * fatigueJumpMult;
|
||||||
|
|
||||||
if (!godmode)
|
if (!godmode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue