mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
Use random seed specified by settings for new games
This commit is contained in:
parent
2e8f9f471f
commit
926cdfbe19
@ -837,6 +837,7 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
|
|||||||
mFileCollections, mContentFiles, mGroundcoverFiles, mEncoder, mActivationDistanceOverride, mCellName,
|
mFileCollections, mContentFiles, mGroundcoverFiles, mEncoder, mActivationDistanceOverride, mCellName,
|
||||||
mStartupScript, mResDir.string(), mCfgMgr.getUserDataPath().string());
|
mStartupScript, mResDir.string(), mCfgMgr.getUserDataPath().string());
|
||||||
mWorld->setupPlayer();
|
mWorld->setupPlayer();
|
||||||
|
mWorld->setRandomSeed(mRandomSeed);
|
||||||
mEnvironment.setWorld(*mWorld);
|
mEnvironment.setWorld(*mWorld);
|
||||||
|
|
||||||
mWindowManager->setStore(mWorld->getStore());
|
mWindowManager->setStore(mWorld->getStore());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user