diff options
author | LO1ZB <andreasdaamen@web.de> | 2014-09-01 15:01:56 +0200 |
---|---|---|
committer | LO1ZB <andreasdaamen@web.de> | 2014-09-01 15:01:56 +0200 |
commit | 4c9abab2d12fa3900a8339ef125fe0808e182eaf (patch) | |
tree | 2399d9d03e156b528facc3e733fc26ab96e4ed12 | |
parent | remove orphaned comment. (diff) | |
download | cuberite-4c9abab2d12fa3900a8339ef125fe0808e182eaf.tar cuberite-4c9abab2d12fa3900a8339ef125fe0808e182eaf.tar.gz cuberite-4c9abab2d12fa3900a8339ef125fe0808e182eaf.tar.bz2 cuberite-4c9abab2d12fa3900a8339ef125fe0808e182eaf.tar.lz cuberite-4c9abab2d12fa3900a8339ef125fe0808e182eaf.tar.xz cuberite-4c9abab2d12fa3900a8339ef125fe0808e182eaf.tar.zst cuberite-4c9abab2d12fa3900a8339ef125fe0808e182eaf.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/ChunkGenerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Generating/ChunkGenerator.cpp b/src/Generating/ChunkGenerator.cpp index a1c3d50cc..845202358 100644 --- a/src/Generating/ChunkGenerator.cpp +++ b/src/Generating/ChunkGenerator.cpp @@ -230,7 +230,6 @@ void cChunkGenerator::Execute(void) } cChunkCoords coords = m_Queue.front(); // Get next coord from queue - m_Queue.erase( m_Queue.begin()); // Remove coordinate from queue bool SkipEnabled = (m_Queue.size() > QUEUE_SKIP_LIMIT); Lock.Unlock(); // Unlock ASAP m_evtRemoved.Set(); @@ -254,6 +253,8 @@ void cChunkGenerator::Execute(void) LOGD("Generating chunk [%d, %d]", coords.m_ChunkX, coords.m_ChunkZ); DoGenerate(coords.m_ChunkX, coords.m_ChunkZ); + m_Queue.erase(m_Queue.begin()); // Remove coordinate from queue + NumChunksGenerated++; } // while (!bStop) } |