summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorp-mcgowan <mickeymcgowan@shaw.ca>2014-12-05 01:59:45 +0100
committerp-mcgowan <mickeymcgowan@shaw.ca>2014-12-05 01:59:45 +0100
commit538991c973fc6839b16b48b40a22084fe1218f74 (patch)
treec70d0047f316bb4d82ab574abdf70cf96fcd3bf6 /src
parentformatting fixes (diff)
downloadcuberite-538991c973fc6839b16b48b40a22084fe1218f74.tar
cuberite-538991c973fc6839b16b48b40a22084fe1218f74.tar.gz
cuberite-538991c973fc6839b16b48b40a22084fe1218f74.tar.bz2
cuberite-538991c973fc6839b16b48b40a22084fe1218f74.tar.lz
cuberite-538991c973fc6839b16b48b40a22084fe1218f74.tar.xz
cuberite-538991c973fc6839b16b48b40a22084fe1218f74.tar.zst
cuberite-538991c973fc6839b16b48b40a22084fe1218f74.zip
Diffstat (limited to 'src')
-rw-r--r--src/Generating/FinishGen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index e50942073..c83dfec67 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -835,6 +835,7 @@ cFinishGenFluidSprings::cFinishGenFluidSprings(int a_Seed, BLOCKTYPE a_Fluid, cI
default:
{
ASSERT(!"Unhandled world dimension");
+ DefaultChance = 0;
break;
}
} // switch (dimension)
@@ -970,7 +971,7 @@ cFinishGenPassiveMobs::cFinishGenPassiveMobs(int a_Seed, cIniFile & a_IniFile, e
default:
{
ASSERT(!"Unhandled world dimension");
- break;
+ return;
}
} // switch (dimension)
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, mtPig);
ListOfSpawnables.insert(MobIter, mtSheep);
-
+
if (ListOfSpawnables.empty())
{
return mtInvalidType;