1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

Fix visual glitch happening when closing inventory while sneaking

(bug #1255)
This commit is contained in:
Emanuel Guevel 2014-04-06 22:21:28 +02:00
parent c7f2cfeca0
commit ce7aa96371

View file

@ -364,10 +364,9 @@ void RenderingManager::update (float duration, bool paused)
static const int i1stPersonSneakDelta = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>() static const int i1stPersonSneakDelta = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>()
.find("i1stPersonSneakDelta")->getInt(); .find("i1stPersonSneakDelta")->getInt();
if(isSneaking && !(isSwimming || isInAir)) if(!paused && isSneaking && !(isSwimming || isInAir))
mCamera->setSneakOffset(i1stPersonSneakDelta); mCamera->setSneakOffset(i1stPersonSneakDelta);
mOcclusionQuery->update(duration); mOcclusionQuery->update(duration);
mRendering.update(duration); mRendering.update(duration);