summaryrefslogtreecommitdiffstats
path: root/src/Generating/ChunkGenerator.h
diff options
context:
space:
mode:
authorLO1ZB <andreasdaamen@web.de>2014-09-03 00:14:51 +0200
committerLO1ZB <andreasdaamen@web.de>2014-09-03 00:14:51 +0200
commita600e3bdfef5514d28475b6574f1c78ee74ed214 (patch)
tree9b12e05a5e48e3f65dba0397f5c5f7292637829d /src/Generating/ChunkGenerator.h
parentfix possibility of a twice generated chunk (diff)
downloadcuberite-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 'src/Generating/ChunkGenerator.h')
-rw-r--r--src/Generating/ChunkGenerator.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Generating/ChunkGenerator.h b/src/Generating/ChunkGenerator.h
index 17ca8adce..0737834c9 100644
--- a/src/Generating/ChunkGenerator.h
+++ b/src/Generating/ChunkGenerator.h
@@ -116,7 +116,7 @@ public:
void Stop(void);
/// Queues the chunk for generation; removes duplicate requests
- void QueueGenerateChunk(int a_ChunkX, int a_ChunkZ);
+ void QueueGenerateChunk(int a_ChunkX, int a_ChunkZ, bool a_ForceGenerate);
/// Generates the biomes for the specified chunk (directly, not in a separate thread). Used by the world loader if biomes failed loading.
void GenerateBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap);
@@ -137,10 +137,10 @@ private:
int m_Seed;
- cCriticalSection m_CS;
- cChunkCoordsList m_Queue;
- cEvent m_Event; ///< Set when an item is added to the queue or the thread should terminate
- cEvent m_evtRemoved; ///< Set when an item is removed from the queue
+ cCriticalSection m_CS;
+ cChunkCoordWithBoolList m_Queue;
+ cEvent m_Event; ///< Set when an item is added to the queue or the thread should terminate
+ cEvent m_evtRemoved; ///< Set when an item is removed from the queue
cGenerator * m_Generator; ///< The actual generator engine used to generate chunks