1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Issue #19: fixed RNG in engine's frame listener

This commit is contained in:
Marc Zinnschlag 2011-10-06 12:36:16 +02:00
parent 3bef04cb1d
commit 896b7da23d

View file

@ -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();
}