Merge pull request #248 from OpenMW/master

Add OpenMW commits up to 26 Jul 2017, part 2
0.6.1
David Cernat 8 years ago committed by GitHub
commit e6e5d406b8

@ -1761,9 +1761,10 @@ void CharacterController::update(float duration)
static const float fFatigueSneakBase = gmst.find("fFatigueSneakBase")->getFloat(); static const float fFatigueSneakBase = gmst.find("fFatigueSneakBase")->getFloat();
static const float fFatigueSneakMult = gmst.find("fFatigueSneakMult")->getFloat(); static const float fFatigueSneakMult = gmst.find("fFatigueSneakMult")->getFloat();
const float encumbrance = cls.getEncumbrance(mPtr) / cls.getCapacity(mPtr); if (cls.getEncumbrance(mPtr) <= cls.getCapacity(mPtr))
if (encumbrance < 1)
{ {
const float encumbrance = cls.getEncumbrance(mPtr) / cls.getCapacity(mPtr);
if (sneak) if (sneak)
fatigueLoss = fFatigueSneakBase + encumbrance * fFatigueSneakMult; fatigueLoss = fFatigueSneakBase + encumbrance * fFatigueSneakMult;
else else

Loading…
Cancel
Save