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:
parent
4daaa4030d
commit
822866b5ae
1 changed files with 7 additions and 0 deletions
|
@ -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}");
|
||||
|
|
Loading…
Reference in a new issue