summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/RegionLoader.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-28 22:19:24 +0100
committerMattes D <github@xoft.cz>2014-10-28 22:19:24 +0100
commit48ac3acc84274fe8d0bf3af30fb47c6729b07147 (patch)
tree1498d5c1db60718dccbc4606d1f082a5e1f29da0 /Tools/QtBiomeVisualiser/RegionLoader.cpp
parentQtBiomeVisualiser: Fixed mouse zoom vs menu zoom. (diff)
downloadcuberite-48ac3acc84274fe8d0bf3af30fb47c6729b07147.tar
cuberite-48ac3acc84274fe8d0bf3af30fb47c6729b07147.tar.gz
cuberite-48ac3acc84274fe8d0bf3af30fb47c6729b07147.tar.bz2
cuberite-48ac3acc84274fe8d0bf3af30fb47c6729b07147.tar.lz
cuberite-48ac3acc84274fe8d0bf3af30fb47c6729b07147.tar.xz
cuberite-48ac3acc84274fe8d0bf3af30fb47c6729b07147.tar.zst
cuberite-48ac3acc84274fe8d0bf3af30fb47c6729b07147.zip
Diffstat (limited to '')
-rw-r--r--Tools/QtBiomeVisualiser/RegionLoader.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tools/QtBiomeVisualiser/RegionLoader.cpp b/Tools/QtBiomeVisualiser/RegionLoader.cpp
index 771c1bbac..2a318098b 100644
--- a/Tools/QtBiomeVisualiser/RegionLoader.cpp
+++ b/Tools/QtBiomeVisualiser/RegionLoader.cpp
@@ -7,6 +7,12 @@
+volatile bool RegionLoader::m_IsShuttingDown = false;
+
+
+
+
+
RegionLoader::RegionLoader(int a_RegionX, int a_RegionZ, RegionPtr a_Region, ChunkSourcePtr a_ChunkSource) :
m_RegionX(a_RegionX),
m_RegionZ(a_RegionZ),
@@ -27,6 +33,10 @@ void RegionLoader::run()
for (int x = 0; x < 32; x++)
{
m_ChunkSource->getChunkBiomes(m_RegionX * 32 + x, m_RegionZ * 32 + z, m_Region->getRelChunk(x, z));
+ if (m_IsShuttingDown)
+ {
+ return;
+ }
}
}
m_Region->m_IsValid = true;