1
0

Fixed monster spawn randomness.

Fixes #1699.
This commit is contained in:
Mattes D 2015-02-20 22:55:19 +01:00
parent 5d4dd103a1
commit 22d3a6a47f

View File

@ -110,7 +110,8 @@ eMonsterType cMobSpawner::ChooseMobType(EMCSBiome a_Biome)
if (allowedMobsSize > 0)
{
std::set<eMonsterType>::iterator itr = allowedMobs.begin();
int iRandom = m_Random.NextInt((int)allowedMobsSize, a_Biome);
static int Counter = 0;
int iRandom = m_Random.NextInt((int)allowedMobsSize, Counter++);
for (int i = 0; i < iRandom; i++)
{