mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Don't toggle sneaking while controls are disabled
This commit is contained in:
parent
f49ca98c8c
commit
4787e6b9a7
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user