diff options
author | Mattes D <github@xoft.cz> | 2014-10-28 20:49:29 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-10-28 20:49:29 +0100 |
commit | 3f3a2a6755460e4f0d976deee9f067969edbfdd2 (patch) | |
tree | 23d2eed3a607ce371b6297859b6d483235632512 /Tools | |
parent | Merged remote-tracking branch 'origin/master'. (diff) | |
download | cuberite-3f3a2a6755460e4f0d976deee9f067969edbfdd2.tar cuberite-3f3a2a6755460e4f0d976deee9f067969edbfdd2.tar.gz cuberite-3f3a2a6755460e4f0d976deee9f067969edbfdd2.tar.bz2 cuberite-3f3a2a6755460e4f0d976deee9f067969edbfdd2.tar.lz cuberite-3f3a2a6755460e4f0d976deee9f067969edbfdd2.tar.xz cuberite-3f3a2a6755460e4f0d976deee9f067969edbfdd2.tar.zst cuberite-3f3a2a6755460e4f0d976deee9f067969edbfdd2.zip |
Diffstat (limited to '')
-rw-r--r-- | Tools/QtBiomeVisualiser/Region.h | 2 | ||||
-rw-r--r-- | Tools/QtBiomeVisualiser/RegionLoader.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Tools/QtBiomeVisualiser/Region.h b/Tools/QtBiomeVisualiser/Region.h index f1bef0c2d..863c0ac02 100644 --- a/Tools/QtBiomeVisualiser/Region.h +++ b/Tools/QtBiomeVisualiser/Region.h @@ -30,6 +30,8 @@ public: static void chunkToRegion(int a_ChunkX, int a_ChunkZ, int & a_RegionX, int & a_RegionZ); protected: + friend class RegionLoader; + Chunk m_Chunks[32 * 32]; diff --git a/Tools/QtBiomeVisualiser/RegionLoader.cpp b/Tools/QtBiomeVisualiser/RegionLoader.cpp index 8c298da1e..771c1bbac 100644 --- a/Tools/QtBiomeVisualiser/RegionLoader.cpp +++ b/Tools/QtBiomeVisualiser/RegionLoader.cpp @@ -29,6 +29,8 @@ void RegionLoader::run() 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); } |