Merge pull request #2371 from Capostrophic/sneak

Don't toggle sneaking when controls are disabled
pull/541/head
Bret Curtis 6 years ago committed by GitHub
commit e0af6532ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save