mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
stop time while GUI is up
This commit is contained in:
parent
c8a18b7d70
commit
74f3eb6ad4
@ -52,8 +52,9 @@ bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt)
|
||||
mEnvironment.mGlobalScripts->run (mEnvironment);
|
||||
|
||||
// passing of time
|
||||
mEnvironment.mWorld->advanceTime (
|
||||
mEnvironment.mFrameDuration*mEnvironment.mWorld->getTimeScaleFactor()/3600);
|
||||
if (mEnvironment.mWindowManager->getMode()==MWGui::GM_Game)
|
||||
mEnvironment.mWorld->advanceTime (
|
||||
mEnvironment.mFrameDuration*mEnvironment.mWorld->getTimeScaleFactor()/3600);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user