QtBiomeVisualiser: Fixed random regions not rendered.
This commit is contained in:
parent
6a1a76e73d
commit
3f3a2a6755
@ -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];
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user