mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-14 01:19:59 +00:00
Merge remote-tracking branch 'scrawl/master'
This commit is contained in:
commit
3036b63175
@ -5,6 +5,7 @@
|
||||
#include <OgreRay.h>
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
#include "../mwbase/soundmanager.hpp"
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
@ -119,7 +120,8 @@ namespace MWRender
|
||||
|
||||
void Player::update(float duration)
|
||||
{
|
||||
if (!mVanity.enabled) {
|
||||
bool isGuiMode = MWBase::Environment::get().getWindowManager ()->isGuiMode();
|
||||
if (!mVanity.enabled && !isGuiMode) {
|
||||
++mUpdates;
|
||||
mTimeIdle += duration;
|
||||
if (mTimeIdle > 30.f) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user