mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 02:15:32 +00:00
Issue #19: fixed RNG in engine's frame listener
This commit is contained in:
parent
3bef04cb1d
commit
896b7da23d
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,6 @@ bool OMW::Engine::frameRenderingQueued (const Ogre::FrameEvent& evt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
srand ( time(NULL) );
|
|
||||||
int r = rand() % total; //old random code
|
int r = rand() % total; //old random code
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
soundIter = test.soundList.begin();
|
soundIter = test.soundList.begin();
|
||||||
|
@ -221,6 +220,7 @@ OMW::Engine::Engine(Cfg::ConfigurationManager& configurationManager)
|
||||||
, mFSStrict (false)
|
, mFSStrict (false)
|
||||||
, mCfgMgr(configurationManager)
|
, mCfgMgr(configurationManager)
|
||||||
{
|
{
|
||||||
|
std::srand ( std::time(NULL) );
|
||||||
MWClass::registerClasses();
|
MWClass::registerClasses();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue