mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04:00
Merge pull request #2371 from Capostrophic/sneak
Don't toggle sneaking when controls are disabled
This commit is contained in:
commit
e0af6532ec
@ -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