diff options
author | LO1ZB <andreasdaamen@web.de> | 2014-09-03 00:14:51 +0200 |
---|---|---|
committer | LO1ZB <andreasdaamen@web.de> | 2014-09-03 00:14:51 +0200 |
commit | a600e3bdfef5514d28475b6574f1c78ee74ed214 (patch) | |
tree | 9b12e05a5e48e3f65dba0397f5c5f7292637829d /src/World.cpp | |
parent | fix possibility of a twice generated chunk (diff) | |
download | cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.gz cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.bz2 cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.lz cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.xz cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.tar.zst cuberite-a600e3bdfef5514d28475b6574f1c78ee74ed214.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/World.cpp b/src/World.cpp index f6fed53ee..2301cd8c6 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -2900,7 +2900,7 @@ void cWorld::RegenerateChunk(int a_ChunkX, int a_ChunkZ) { m_ChunkMap->MarkChunkRegenerating(a_ChunkX, a_ChunkZ); - m_Generator.QueueGenerateChunk(a_ChunkX, a_ChunkZ); + m_Generator.QueueGenerateChunk(a_ChunkX, a_ChunkZ, true); } @@ -2909,16 +2909,7 @@ void cWorld::RegenerateChunk(int a_ChunkX, int a_ChunkZ) void cWorld::GenerateChunk(int a_ChunkX, int a_ChunkZ) { - /** Add a chunk to the generation queue, if it's not already present. */ - if (!(m_ChunkMap->IsChunkValid(a_ChunkX, a_ChunkZ))) - { - LOGD("Chunk [%d, %d] already generated, skipping generation", a_ChunkX, a_ChunkZ); - /** Already generated, ignore request */ - } - else - { - m_Generator.QueueGenerateChunk(a_ChunkX, a_ChunkZ); - } + m_Generator.QueueGenerateChunk(a_ChunkX, a_ChunkZ, false); } |