Don't toggle sneaking while controls are disabled

pull/541/head
Capostrophic 6 years ago
parent f49ca98c8c
commit 4787e6b9a7

@ -1395,6 +1395,7 @@ namespace MWInput
void InputManager::toggleSneaking() void InputManager::toggleSneaking()
{ {
if (MWBase::Environment::get().getWindowManager()->isGuiMode()) return; if (MWBase::Environment::get().getWindowManager()->isGuiMode()) return;
if (!mControlSwitch["playercontrols"]) return;
mSneaking = !mSneaking; mSneaking = !mSneaking;
mPlayer->setSneak(mSneaking); mPlayer->setSneak(mSneaking);
} }

Loading…
Cancel
Save