summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-10 18:18:32 +0200
committermadmaxoft <github@xoft.cz>2014-07-10 18:18:32 +0200
commit9e22f46b15d4c92bfbfdd5fb23d7530348f1d534 (patch)
tree8a5e25dcc2797a066e7d01f2f3d049095062b71e /src/ChunkMap.h
parentMerge pull request #1159 from mc-server/VectorFloorFix (diff)
downloadcuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.gz
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.bz2
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.lz
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.xz
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.tar.zst
cuberite-9e22f46b15d4c92bfbfdd5fb23d7530348f1d534.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkMap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h
index 433516490..b8870dfca 100644
--- a/src/ChunkMap.h
+++ b/src/ChunkMap.h
@@ -339,6 +339,13 @@ public:
/** Returns the CS for locking the chunkmap; only cWorld::cLock may use this function! */
cCriticalSection & GetCS(void) { return m_CSLayers; }
+
+ /** Increments (a_AlwaysTicked == true) or decrements (false) the m_AlwaysTicked counter for the specified chunk.
+ If the m_AlwaysTicked counter is greater than zero, the chunk is ticked in the tick-thread regardless of
+ whether it has any clients or not.
+ This function allows nesting and task-concurrency (multiple separate tasks can request ticking and as long
+ as at least one requests is active the chunk will be ticked). */
+ void SetChunkAlwaysTicked(int a_ChunkX, int a_ChunkZ, bool a_AlwaysTicked);
private: