summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-16 11:00:15 +0200
committerMattes D <github@xoft.cz>2014-10-16 11:00:30 +0200
commit799ae87d3fe17e37462cf26f902fdc3565e4b562 (patch)
tree07d8d09ec9234d27cf82cfb986cce9478a9ee379 /src/Generating
parentMerge pull request #1537 from mc-server/GenerationCrash (diff)
downloadcuberite-799ae87d3fe17e37462cf26f902fdc3565e4b562.tar
cuberite-799ae87d3fe17e37462cf26f902fdc3565e4b562.tar.gz
cuberite-799ae87d3fe17e37462cf26f902fdc3565e4b562.tar.bz2
cuberite-799ae87d3fe17e37462cf26f902fdc3565e4b562.tar.lz
cuberite-799ae87d3fe17e37462cf26f902fdc3565e4b562.tar.xz
cuberite-799ae87d3fe17e37462cf26f902fdc3565e4b562.tar.zst
cuberite-799ae87d3fe17e37462cf26f902fdc3565e4b562.zip
Diffstat (limited to 'src/Generating')
-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 8924a7999..9b3d4e98d 100644
--- a/src/Generating/BioGen.cpp
+++ b/src/Generating/BioGen.cpp
@@ -760,8 +760,8 @@ void cBioGenTwoLevel::GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap
int DistortZ[cChunkDef::Width + 1][cChunkDef::Width + 1];
for (int x = 0; x <= 4; x++) for (int z = 0; z <= 4; z++)
{
- float BlockX = BaseX + x * 4;
- float BlockZ = BaseZ + z * 4;
+ float BlockX = static_cast<float>(BaseX + x * 4);
+ float BlockZ = static_cast<float>(BaseZ + z * 4);
double NoiseX = m_AmpX1 * m_Noise1.CubicNoise2D(BlockX * m_FreqX1, BlockZ * m_FreqX1);
NoiseX += m_AmpX2 * m_Noise2.CubicNoise2D(BlockX * m_FreqX2, BlockZ * m_FreqX2);
NoiseX += m_AmpX3 * m_Noise3.CubicNoise2D(BlockX * m_FreqX3, BlockZ * m_FreqX3);