mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 17:45:35 +00:00
Don't reset sneaking camera offset while in GUI (fixes #4420)
This commit is contained in:
parent
bdfa430857
commit
867a5938ca
2 changed files with 4 additions and 4 deletions
|
@ -1621,7 +1621,7 @@ namespace MWWorld
|
|||
if (!paused)
|
||||
doPhysics (duration);
|
||||
|
||||
updatePlayer(paused);
|
||||
updatePlayer();
|
||||
|
||||
mPhysics->debugDraw();
|
||||
|
||||
|
@ -1637,7 +1637,7 @@ namespace MWWorld
|
|||
}
|
||||
}
|
||||
|
||||
void World::updatePlayer(bool paused)
|
||||
void World::updatePlayer()
|
||||
{
|
||||
MWWorld::Ptr player = getPlayerPtr();
|
||||
|
||||
|
@ -1670,7 +1670,7 @@ namespace MWWorld
|
|||
bool swimming = isSwimming(player);
|
||||
|
||||
static const float i1stPersonSneakDelta = getStore().get<ESM::GameSetting>().find("i1stPersonSneakDelta")->getFloat();
|
||||
if(!paused && sneaking && !(swimming || inair))
|
||||
if (sneaking && !(swimming || inair))
|
||||
mRendering->getCamera()->setSneakOffset(i1stPersonSneakDelta);
|
||||
else
|
||||
mRendering->getCamera()->setSneakOffset(0.f);
|
||||
|
|
|
@ -129,7 +129,7 @@ namespace MWWorld
|
|||
Ptr copyObjectToCell(const ConstPtr &ptr, CellStore* cell, ESM::Position pos, int count, bool adjustPos);
|
||||
|
||||
void updateSoundListener();
|
||||
void updatePlayer(bool paused);
|
||||
void updatePlayer();
|
||||
|
||||
void preloadSpells();
|
||||
|
||||
|
|
Loading…
Reference in a new issue