mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 22:15:32 +00:00
Fix automovement toggling on "joystick used" flag
This commit is contained in:
parent
ce92b364e6
commit
ef2a7160fa
1 changed files with 3 additions and 6 deletions
|
@ -623,11 +623,7 @@ namespace MWInput
|
|||
mPlayer->setAutoMove (false);
|
||||
mPlayer->setForwardBackward((yAxis - 0.5f) * 2 * -1);
|
||||
}
|
||||
else if(mPlayer->getAutoMove())
|
||||
{
|
||||
triedToMove = true;
|
||||
mPlayer->setForwardBackward (1);
|
||||
}
|
||||
|
||||
if (triedToMove)
|
||||
mJoystickLastUsed = true;
|
||||
|
||||
|
@ -649,7 +645,8 @@ namespace MWInput
|
|||
mPlayer->setAutoMove (false);
|
||||
mPlayer->setForwardBackward (actionIsActive(A_MoveForward) ? 1 : -1);
|
||||
}
|
||||
else if(mPlayer->getAutoMove())
|
||||
|
||||
if (mPlayer->getAutoMove())
|
||||
{
|
||||
alwaysRunAllowed = true;
|
||||
triedToMove = true;
|
||||
|
|
Loading…
Reference in a new issue