mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
Issue #19: fixed RNG in engine's frame listener
This commit is contained in:
parent
3bef04cb1d
commit
896b7da23d
@ -116,7 +116,6 @@ bool OMW::Engine::frameRenderingQueued (const Ogre::FrameEvent& evt)
|
||||
}
|
||||
}
|
||||
|
||||
srand ( time(NULL) );
|
||||
int r = rand() % total; //old random code
|
||||
int pos = 0;
|
||||
soundIter = test.soundList.begin();
|
||||
@ -221,6 +220,7 @@ OMW::Engine::Engine(Cfg::ConfigurationManager& configurationManager)
|
||||
, mFSStrict (false)
|
||||
, mCfgMgr(configurationManager)
|
||||
{
|
||||
std::srand ( std::time(NULL) );
|
||||
MWClass::registerClasses();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user