1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-11 15:40:39 +00:00

Issue 476: fixed auto-move bypassing disabled player controls

This commit is contained in:
Marc Zinnschlag 2012-11-27 18:39:12 +01:00
parent 43d8c6c484
commit 5eb0f489e2

View File

@ -624,7 +624,9 @@ namespace MWInput
void InputManager::toggleAutoMove()
{
if (mWindows.isGuiMode()) return;
mPlayer.setAutoMove (!mPlayer.getAutoMove());
if (mControlSwitch["playercontrols"])
mPlayer.setAutoMove (!mPlayer.getAutoMove());
}
void InputManager::toggleWalking()