diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-16 11:43:59 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-10-16 11:43:59 +0200 |
commit | 132a92226bbcdf3ef68b2bdffd0a6c37706f03d0 (patch) | |
tree | 68da8240d628a15f375e8820720b257e254b5e0a /src/Generating | |
parent | Changed i variable to j (diff) | |
parent | BioGen: Fixed a compiler warning. (diff) | |
download | cuberite-132a92226bbcdf3ef68b2bdffd0a6c37706f03d0.tar cuberite-132a92226bbcdf3ef68b2bdffd0a6c37706f03d0.tar.gz cuberite-132a92226bbcdf3ef68b2bdffd0a6c37706f03d0.tar.bz2 cuberite-132a92226bbcdf3ef68b2bdffd0a6c37706f03d0.tar.lz cuberite-132a92226bbcdf3ef68b2bdffd0a6c37706f03d0.tar.xz cuberite-132a92226bbcdf3ef68b2bdffd0a6c37706f03d0.tar.zst cuberite-132a92226bbcdf3ef68b2bdffd0a6c37706f03d0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/BioGen.cpp | 4 |
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); |