handle non-vanilla dimensions
This commit is contained in:
parent
53a33595b7
commit
538991c973
@ -835,6 +835,7 @@ cFinishGenFluidSprings::cFinishGenFluidSprings(int a_Seed, BLOCKTYPE a_Fluid, cI
|
|||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
ASSERT(!"Unhandled world dimension");
|
ASSERT(!"Unhandled world dimension");
|
||||||
|
DefaultChance = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} // switch (dimension)
|
} // switch (dimension)
|
||||||
@ -970,7 +971,7 @@ cFinishGenPassiveMobs::cFinishGenPassiveMobs(int a_Seed, cIniFile & a_IniFile, e
|
|||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
ASSERT(!"Unhandled world dimension");
|
ASSERT(!"Unhandled world dimension");
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
} // switch (dimension)
|
} // switch (dimension)
|
||||||
m_AnimalProbability = a_IniFile.GetValueSetI(SectionName, "AnimalSpawnChunkPercentage", DefaultAnimalSpawnChunkPercentage);
|
m_AnimalProbability = a_IniFile.GetValueSetI(SectionName, "AnimalSpawnChunkPercentage", DefaultAnimalSpawnChunkPercentage);
|
||||||
@ -1156,7 +1157,7 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
|
|||||||
ListOfSpawnables.insert(MobIter, mtCow);
|
ListOfSpawnables.insert(MobIter, mtCow);
|
||||||
ListOfSpawnables.insert(MobIter, mtPig);
|
ListOfSpawnables.insert(MobIter, mtPig);
|
||||||
ListOfSpawnables.insert(MobIter, mtSheep);
|
ListOfSpawnables.insert(MobIter, mtSheep);
|
||||||
|
|
||||||
if (ListOfSpawnables.empty())
|
if (ListOfSpawnables.empty())
|
||||||
{
|
{
|
||||||
return mtInvalidType;
|
return mtInvalidType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user