1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 20:53:50 +00:00

fixed autorun

This commit is contained in:
Tom Mason 2013-04-07 18:04:30 +01:00
parent 4daaa4030d
commit 822866b5ae

View file

@ -301,6 +301,12 @@ namespace MWInput
mPlayer.setForwardBackward (-1);
}
else if(mPlayer.getAutoMove())
{
triedToMove = true;
mPlayer.setForwardBackward (1);
}
mPlayer.setSneak(actionIsActive(A_Sneak));
if (actionIsActive(A_Jump) && mControlSwitch["playerjumping"])
@ -321,6 +327,7 @@ namespace MWInput
mOverencumberedMessageDelay -= dt;
if (MWWorld::Class::get(player).getEncumbrance(player) >= MWWorld::Class::get(player).getCapacity(player))
{
mPlayer.setAutoMove (false);
if (mOverencumberedMessageDelay <= 0)
{
MWBase::Environment::get().getWindowManager ()->messageBox("#{sNotifyMessage59}");