From 4787e6b9a789bc1bdc1eadcb0fa8c4c3fa76e6d9 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Mon, 6 May 2019 22:30:07 +0300 Subject: [PATCH] Don't toggle sneaking while controls are disabled --- apps/openmw/mwinput/inputmanagerimp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwinput/inputmanagerimp.cpp b/apps/openmw/mwinput/inputmanagerimp.cpp index b502c9da8f..7cea96aae1 100644 --- a/apps/openmw/mwinput/inputmanagerimp.cpp +++ b/apps/openmw/mwinput/inputmanagerimp.cpp @@ -1395,6 +1395,7 @@ namespace MWInput void InputManager::toggleSneaking() { if (MWBase::Environment::get().getWindowManager()->isGuiMode()) return; + if (!mControlSwitch["playercontrols"]) return; mSneaking = !mSneaking; mPlayer->setSneak(mSneaking); }