summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-02-11 14:01:25 +0100
committernarroo <narroo@vt.edu>2014-02-11 14:01:25 +0100
commitd7f32ed682b19cded6c54f14e4e46792695399a7 (patch)
tree569ea088b8ec629b9a0080e86765f38d6c64742f
parentFixed bug #385. UnloadUnusedChunks now has the same interface as (diff)
downloadcuberite-d7f32ed682b19cded6c54f14e4e46792695399a7.tar
cuberite-d7f32ed682b19cded6c54f14e4e46792695399a7.tar.gz
cuberite-d7f32ed682b19cded6c54f14e4e46792695399a7.tar.bz2
cuberite-d7f32ed682b19cded6c54f14e4e46792695399a7.tar.lz
cuberite-d7f32ed682b19cded6c54f14e4e46792695399a7.tar.xz
cuberite-d7f32ed682b19cded6c54f14e4e46792695399a7.tar.zst
cuberite-d7f32ed682b19cded6c54f14e4e46792695399a7.zip
-rw-r--r--src/World.cpp5
-rw-r--r--src/World.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 9120f8d7d..ad2a58e01 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -2213,6 +2213,9 @@ void cWorld::UnloadUnusedChunks(void)
}
+
+
+
void cWorld::QueueUnloadUnusedChunks(void)
{
QueueTask(new cWorld::cTaskUnloadUnusedChunks);
@@ -2220,6 +2223,8 @@ void cWorld::QueueUnloadUnusedChunks(void)
+
+
void cWorld::CollectPickupsByPlayer(cPlayer * a_Player)
{
m_ChunkMap->CollectPickupsByPlayer(a_Player);
diff --git a/src/World.h b/src/World.h
index e4036d8df..5161c7fd6 100644
--- a/src/World.h
+++ b/src/World.h
@@ -253,10 +253,10 @@ public:
bool HasChunkAnyClients(int a_ChunkX, int a_ChunkZ) const;
- /*Unloads all chunks immediately. Dangerous interface, may deadlock, use QueueUnloadUnusedChunks() instead*/
+ /** Unloads all chunks immediately. Dangerous interface, may deadlock, use QueueUnloadUnusedChunks() instead*/
void UnloadUnusedChunks(void);
- /*Queues a task to unload unused chunks onto the tick thread. The prefferred way of unloading*/
+ /** Queues a task to unload unused chunks onto the tick thread. The prefferred way of unloading*/
void QueueUnloadUnusedChunks(void); // tolua_export
void CollectPickupsByPlayer(cPlayer * a_Player);