mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 13:20:35 +00:00
Fix automovement toggling on "joystick used" flag
This commit is contained in:
parent
ce92b364e6
commit
ef2a7160fa
@ -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…
x
Reference in New Issue
Block a user