1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 19:45:34 +00:00

Use World prng for selection of random creature spawning

This commit is contained in:
ζeh Matt 2022-05-17 17:39:00 +03:00
parent 12a8a6b876
commit cb99e8643a
No known key found for this signature in database
GPG key ID: 18CE582C71A225B0

View file

@ -3697,7 +3697,7 @@ namespace MWWorld
const ESM::CreatureLevList* list = mStore.get<ESM::CreatureLevList>().find(creatureList);
static int iNumberCreatures = mStore.get<ESM::GameSetting>().find("iNumberCreatures")->mValue.getInteger();
int numCreatures = 1 + Misc::Rng::rollDice(iNumberCreatures); // [1, iNumberCreatures]
int numCreatures = 1 + Misc::Rng::rollDice(iNumberCreatures, mPrng); // [1, iNumberCreatures]
for (int i=0; i<numCreatures; ++i)
{