mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
don't do physics calculations while the GUI is up
This commit is contained in:
parent
f1bfca7c7c
commit
4100a72e8d
1 changed files with 2 additions and 1 deletions
|
@ -183,6 +183,7 @@ bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt)
|
|||
focusFrameCounter = 0;
|
||||
}
|
||||
|
||||
if (mEnvironment.mWindowManager->getMode()==MWGui::GM_Game)
|
||||
mEnvironment.mWorld->doPhysics (movement, mEnvironment.mFrameDuration);
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
|
|
Loading…
Reference in a new issue