summaryrefslogtreecommitdiffstats
path: root/src/Generating/BioGen.cpp
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-24 15:58:24 +0200
committertycho <work.tycho@gmail.com>2015-05-24 15:58:24 +0200
commit76a3165f09e729c07cc64b085ec320cbeb206d59 (patch)
treee38a75f890aaa171d76828c27a318d7f7114605b /src/Generating/BioGen.cpp
parentDisable -Werror for warnings in tests. (diff)
downloadcuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.gz
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.bz2
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.lz
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.xz
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.zst
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.zip
Diffstat (limited to 'src/Generating/BioGen.cpp')
-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 2c6af27a4..eb9129c60 100644
--- a/src/Generating/BioGen.cpp
+++ b/src/Generating/BioGen.cpp
@@ -60,7 +60,7 @@ cBioGenCache::cBioGenCache(cBiomeGenPtr a_BioGenToCache, size_t a_CacheSize) :
{
for (size_t i = 0; i < m_CacheSize; i++)
{
- m_CacheOrder[i] = static_cast<size_t>(i);
+ m_CacheOrder[i] = i;
m_CacheData[i].m_ChunkX = 0x7fffffff;
m_CacheData[i].m_ChunkZ = 0x7fffffff;
}
@@ -1121,7 +1121,7 @@ public:
virtual void GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_Biomes) override
{
int vals[16 * 16];
- m_Gen->GetInts(static_cast<size_t>(a_ChunkX * cChunkDef::Width), static_cast<size_t>(a_ChunkZ * cChunkDef::Width), 16, 16, vals);
+ m_Gen->GetInts(a_ChunkX * cChunkDef::Width, a_ChunkZ * cChunkDef::Width, 16, 16, vals);
for (int z = 0; z < cChunkDef::Width; z++)
{
for (int x = 0; x < cChunkDef::Width; x++)