summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2015-07-09 22:41:14 +0200
committerSamuel Barney <samjbarney@gmail.com>2015-07-09 22:41:14 +0200
commitdb3642de8958835fd26d0e525a311def3bef1cae (patch)
treef005bd76d8f22a28c1b95280642c73780c794e26 /src/Generating
parentFixes compilation failures on MacOSX 10.10 (diff)
downloadcuberite-db3642de8958835fd26d0e525a311def3bef1cae.tar
cuberite-db3642de8958835fd26d0e525a311def3bef1cae.tar.gz
cuberite-db3642de8958835fd26d0e525a311def3bef1cae.tar.bz2
cuberite-db3642de8958835fd26d0e525a311def3bef1cae.tar.lz
cuberite-db3642de8958835fd26d0e525a311def3bef1cae.tar.xz
cuberite-db3642de8958835fd26d0e525a311def3bef1cae.tar.zst
cuberite-db3642de8958835fd26d0e525a311def3bef1cae.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/BioGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/BioGen.cpp b/src/Generating/BioGen.cpp
index 6c929f4cb..f0d2af4f3 100644
--- a/src/Generating/BioGen.cpp
+++ b/src/Generating/BioGen.cpp
@@ -554,7 +554,7 @@ void cBioGenMultiStepMap::AddRivers(int a_ChunkX, int a_ChunkZ, cChunkDef::Biome
{
for (int z = 0; z < cChunkDef::Width; z++)
{
- float NoiseCoordZ = static_cast<float>(a_ChunkZ * cChunkDef::Width + z / m_RiverCellSize);
+ float NoiseCoordZ = static_cast<float>(a_ChunkZ * cChunkDef::Width + z) / m_RiverCellSize;
for (int x = 0; x < cChunkDef::Width; x++)
{
if (cChunkDef::GetBiome(a_BiomeMap, x, z) != biInvalidBiome)
@@ -563,7 +563,7 @@ void cBioGenMultiStepMap::AddRivers(int a_ChunkX, int a_ChunkZ, cChunkDef::Biome
continue;
}
- float NoiseCoordX = static_cast<float>(a_ChunkX * cChunkDef::Width + x / m_RiverCellSize);
+ float NoiseCoordX = static_cast<float>(a_ChunkX * cChunkDef::Width + x) / m_RiverCellSize;
double Noise = m_Noise1.CubicNoise2D( NoiseCoordX, NoiseCoordZ);
Noise += 0.5 * m_Noise3.CubicNoise2D(2 * NoiseCoordX, 2 * NoiseCoordZ);