forked from teamnwah/openmw-tes3coop
Fix not being able to move with 0/0 encumbrance (Fixes #1979)
This commit is contained in:
parent
5c3bc6563b
commit
fe4d74a6cb
2 changed files with 2 additions and 2 deletions
|
@ -927,7 +927,7 @@ namespace MWClass
|
||||||
gmst.fAthleticsRunBonus->getFloat() + gmst.fBaseRunMultiplier->getFloat());
|
gmst.fAthleticsRunBonus->getFloat() + gmst.fBaseRunMultiplier->getFloat());
|
||||||
|
|
||||||
float moveSpeed;
|
float moveSpeed;
|
||||||
if(normalizedEncumbrance >= 1.0f)
|
if(getEncumbrance(ptr) > getCapacity(ptr))
|
||||||
moveSpeed = 0.0f;
|
moveSpeed = 0.0f;
|
||||||
else if(mageffects.get(ESM::MagicEffect::Levitate).getMagnitude() > 0 &&
|
else if(mageffects.get(ESM::MagicEffect::Levitate).getMagnitude() > 0 &&
|
||||||
world->isLevitationEnabled())
|
world->isLevitationEnabled())
|
||||||
|
|
|
@ -385,7 +385,7 @@ namespace MWInput
|
||||||
{
|
{
|
||||||
MWWorld::Ptr player = MWBase::Environment::get().getWorld ()->getPlayerPtr();
|
MWWorld::Ptr player = MWBase::Environment::get().getWorld ()->getPlayerPtr();
|
||||||
mOverencumberedMessageDelay -= dt;
|
mOverencumberedMessageDelay -= dt;
|
||||||
if (player.getClass().getEncumbrance(player) >= player.getClass().getCapacity(player))
|
if (player.getClass().getEncumbrance(player) > player.getClass().getCapacity(player))
|
||||||
{
|
{
|
||||||
mPlayer->setAutoMove (false);
|
mPlayer->setAutoMove (false);
|
||||||
if (mOverencumberedMessageDelay <= 0)
|
if (mOverencumberedMessageDelay <= 0)
|
||||||
|
|
Loading…
Reference in a new issue