1
0

QtBiomeVisualiser: Fixed random regions not rendered.

This commit is contained in:
Mattes D 2014-10-28 20:49:29 +01:00
parent 6a1a76e73d
commit 3f3a2a6755
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,8 @@ public:
static void chunkToRegion(int a_ChunkX, int a_ChunkZ, int & a_RegionX, int & a_RegionZ); static void chunkToRegion(int a_ChunkX, int a_ChunkZ, int & a_RegionX, int & a_RegionZ);
protected: protected:
friend class RegionLoader;
Chunk m_Chunks[32 * 32]; Chunk m_Chunks[32 * 32];

View File

@ -29,6 +29,8 @@ void RegionLoader::run()
m_ChunkSource->getChunkBiomes(m_RegionX * 32 + x, m_RegionZ * 32 + z, m_Region->getRelChunk(x, z)); m_ChunkSource->getChunkBiomes(m_RegionX * 32 + x, m_RegionZ * 32 + z, m_Region->getRelChunk(x, z));
} }
} }
m_Region->m_IsValid = true;
emit loaded(m_RegionX, m_RegionZ); emit loaded(m_RegionX, m_RegionZ);
} }