summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-06-01 15:02:42 +0200
committerMattes D <github@xoft.cz>2015-06-01 15:02:42 +0200
commita54fa15bc6326d5482fae27b5fbcd42c8a34427a (patch)
tree5b2bb45d000c25554b45cdd1aeea59a96734534a /src/World.cpp
parentMerge pull request #2178 from jammet/patch-7 (diff)
parentMade cLightingThread own its callbacks (diff)
downloadcuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar
cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.gz
cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.bz2
cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.lz
cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.xz
cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.tar.zst
cuberite-a54fa15bc6326d5482fae27b5fbcd42c8a34427a.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/World.cpp b/src/World.cpp
index aabbd7276..f7d2165c7 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -2872,9 +2872,9 @@ void cWorld::TouchChunk(int a_ChunkX, int a_ChunkZ)
-void cWorld::PrepareChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_CallAfter)
+void cWorld::PrepareChunk(int a_ChunkX, int a_ChunkZ, std::unique_ptr<cChunkCoordCallback> a_CallAfter)
{
- m_ChunkMap->PrepareChunk(a_ChunkX, a_ChunkZ, a_CallAfter);
+ m_ChunkMap->PrepareChunk(a_ChunkX, a_ChunkZ, std::move(a_CallAfter));
}
@@ -2998,9 +2998,9 @@ void cWorld::GenerateChunk(int a_ChunkX, int a_ChunkZ)
-void cWorld::QueueLightChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_Callback)
+void cWorld::QueueLightChunk(int a_ChunkX, int a_ChunkZ, std::unique_ptr<cChunkCoordCallback> a_Callback)
{
- m_Lighting.QueueChunk(a_ChunkX, a_ChunkZ, a_Callback);
+ m_Lighting.QueueChunk(a_ChunkX, a_ChunkZ, std::move(a_Callback));
}