diff options
author | madmaxoft <github@xoft.cz> | 2014-02-08 22:35:45 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-02-08 22:35:45 +0100 |
commit | cf48968835195f2b66e7e4a04187c51e5211d40f (patch) | |
tree | 206924ef9a639910168de473c9dcaa0de1bfd2fe /src | |
parent | Fixed lighting thread queueing. (diff) | |
download | cuberite-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 |
Diffstat (limited to 'src')
-rw-r--r-- | src/LightingThread.cpp | 4 |
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 } |