stop time while GUI is up

This commit is contained in:
Marc Zinnschlag 2010-07-21 14:12:50 +02:00
parent c8a18b7d70
commit 74f3eb6ad4

View file

@ -52,8 +52,9 @@ bool OMW::Engine::frameStarted(const Ogre::FrameEvent& evt)
mEnvironment.mGlobalScripts->run (mEnvironment); mEnvironment.mGlobalScripts->run (mEnvironment);
// passing of time // passing of time
mEnvironment.mWorld->advanceTime ( if (mEnvironment.mWindowManager->getMode()==MWGui::GM_Game)
mEnvironment.mFrameDuration*mEnvironment.mWorld->getTimeScaleFactor()/3600); mEnvironment.mWorld->advanceTime (
mEnvironment.mFrameDuration*mEnvironment.mWorld->getTimeScaleFactor()/3600);
return true; return true;
} }