diff options
author | madmaxoft <github@xoft.cz> | 2014-01-07 14:24:25 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-07 14:24:25 +0100 |
commit | 934b90c121def4f6f9a7c919727cadeeca49981f (patch) | |
tree | 8ca75ec9f6f0bb3a937657e863375ac8920fc66e /src/Generating | |
parent | Added Base64Encode(). (diff) | |
download | cuberite-934b90c121def4f6f9a7c919727cadeeca49981f.tar cuberite-934b90c121def4f6f9a7c919727cadeeca49981f.tar.gz cuberite-934b90c121def4f6f9a7c919727cadeeca49981f.tar.bz2 cuberite-934b90c121def4f6f9a7c919727cadeeca49981f.tar.lz cuberite-934b90c121def4f6f9a7c919727cadeeca49981f.tar.xz cuberite-934b90c121def4f6f9a7c919727cadeeca49981f.tar.zst cuberite-934b90c121def4f6f9a7c919727cadeeca49981f.zip |
Diffstat (limited to 'src/Generating')
-rw-r--r-- | src/Generating/Caves.cpp | 8 | ||||
-rw-r--r-- | src/Generating/DistortedHeightmap.cpp | 3 | ||||
-rw-r--r-- | src/Generating/FinishGen.cpp | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/src/Generating/Caves.cpp b/src/Generating/Caves.cpp index df45bb4c2..c94113f5c 100644 --- a/src/Generating/Caves.cpp +++ b/src/Generating/Caves.cpp @@ -285,7 +285,7 @@ bool cCaveTunnel::RefineDefPoints(const cCaveDefPoints & a_Src, cCaveDefPoints & void cCaveTunnel::Smooth(void) { cCaveDefPoints Pts; - while (true) + for (;;) { if (!RefineDefPoints(m_Points, Pts)) { @@ -331,7 +331,7 @@ void cCaveTunnel::FinishLinear(void) int yd = dy - dx / 2; int zd = dz - dx / 2; - while (true) + for (;;) { m_Points.push_back(cCaveDefPoint(PrevX, PrevY, PrevZ, R)); @@ -363,7 +363,7 @@ void cCaveTunnel::FinishLinear(void) int xd = dx - dy / 2; int zd = dz - dy / 2; - while (true) + for (;;) { m_Points.push_back(cCaveDefPoint(PrevX, PrevY, PrevZ, R)); @@ -397,7 +397,7 @@ void cCaveTunnel::FinishLinear(void) int xd = dx - dz / 2; int yd = dy - dz / 2; - while (true) + for (;;) { m_Points.push_back(cCaveDefPoint(PrevX, PrevY, PrevZ, R)); diff --git a/src/Generating/DistortedHeightmap.cpp b/src/Generating/DistortedHeightmap.cpp index 15e352e30..eb9fe92ba 100644 --- a/src/Generating/DistortedHeightmap.cpp +++ b/src/Generating/DistortedHeightmap.cpp @@ -774,10 +774,11 @@ void cDistortedHeightmap::ComposeColumn(cChunkDesc & a_ChunkDesc, int a_RelX, in return; } default: + { ASSERT(!"Unhandled biome"); return; + } } // switch (Biome) - ASSERT(!"Unexpected fallthrough"); } diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp index 866551e8a..145fe22e0 100644 --- a/src/Generating/FinishGen.cpp +++ b/src/Generating/FinishGen.cpp @@ -528,7 +528,7 @@ cFinishGenFluidSprings::cFinishGenFluidSprings(int a_Seed, BLOCKTYPE a_Fluid, cI bool IsWater = (a_Fluid == E_BLOCK_WATER); AString SectionName = IsWater ? "WaterSprings" : "LavaSprings"; AString DefaultHeightDistribution; - int DefaultChance; + int DefaultChance = 0; switch (a_World.GetDimension()) { case dimNether: |