mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-12 05:27:04 +03:00
Merge pull request #2371 from Capostrophic/sneak
Don't toggle sneaking when controls are disabled
This commit is contained in:
commit
e0af6532ec
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue