1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Don't toggle sneaking while controls are disabled

This commit is contained in:
Capostrophic 2019-05-06 22:30:07 +03:00
parent f49ca98c8c
commit 4787e6b9a7

View file

@ -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);
}