summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-02-08 22:35:45 +0100
committermadmaxoft <github@xoft.cz>2014-02-08 22:35:45 +0100
commitcf48968835195f2b66e7e4a04187c51e5211d40f (patch)
tree206924ef9a639910168de473c9dcaa0de1bfd2fe
parentFixed lighting thread queueing. (diff)
downloadcuberite-cf48968835195f2b66e7e4a04187c51e5211d40f.tar
cuberite-cf48968835195f2b66e7e4a04187c51e5211d40f.tar.gz
cuberite-cf48968835195f2b66e7e4a04187c51e5211d40f.tar.bz2
cuberite-cf48968835195f2b66e7e4a04187c51e5211d40f.tar.lz
cuberite-cf48968835195f2b66e7e4a04187c51e5211d40f.tar.xz
cuberite-cf48968835195f2b66e7e4a04187c51e5211d40f.tar.zst
cuberite-cf48968835195f2b66e7e4a04187c51e5211d40f.zip
-rw-r--r--src/LightingThread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LightingThread.cpp b/src/LightingThread.cpp
index 8fbfb29db..688f119ff 100644
--- a/src/LightingThread.cpp
+++ b/src/LightingThread.cpp
@@ -137,12 +137,12 @@ void cLightingThread::QueueChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback
cChunkStay * ChunkStay = new cLightingChunkStay(*this, a_ChunkX, a_ChunkZ, a_CallbackAfter);
{
+ // The ChunkStay will enqueue itself using the QueueChunkStay() once it is fully loaded
+ // In the meantime, put it into the PendingQueue so that it can be removed when stopping the thread
cCSLock Lock(m_CS);
m_PendingQueue.push_back(ChunkStay);
}
ChunkStay->Enable(*m_World->GetChunkMap());
- // The ChunkStay will enqueue itself using the QueueChunkStay() once it is fully loaded
- // In the meantime, put it into the PendingQueue so that it can be removed when stopping the thread
}