summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-30 12:11:17 +0200
committertycho <work.tycho@gmail.com>2015-05-30 12:11:17 +0200
commit06a74e45e247a2d23c6b5a238a3c1b9b17b6c341 (patch)
tree965c54b25acc4a3b7dee194f9194f885299e5656 /src/World.h
parentClean up Spawn Prepare (diff)
downloadcuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar
cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.gz
cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.bz2
cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.lz
cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.xz
cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.tar.zst
cuberite-06a74e45e247a2d23c6b5a238a3c1b9b17b6c341.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/World.h b/src/World.h
index d1ca01989..064b50165 100644
--- a/src/World.h
+++ b/src/World.h
@@ -385,7 +385,7 @@ public:
The specified chunk is queued to be loaded or generated, and lit if needed.
The specified callback is called after the chunk has been prepared. If there's no preparation to do, only the callback is called.
It is legal to call with no callback. */
- void PrepareChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_CallAfter = nullptr);
+ void PrepareChunk(int a_ChunkX, int a_ChunkZ, std::unique_ptr<cChunkCoordCallback> a_CallAfter = {});
/** Marks the chunk as failed-to-load: */
void ChunkLoadFailed(int a_ChunkX, int a_ChunkZ);
@@ -409,7 +409,7 @@ public:
void GenerateChunk(int a_ChunkX, int a_ChunkZ); // tolua_export
/** Queues a chunk for lighting; a_Callback is called after the chunk is lighted */
- void QueueLightChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_Callback = nullptr);
+ void QueueLightChunk(int a_ChunkX, int a_ChunkZ, std::unique_ptr<cChunkCoordCallback> a_Callback = {});
bool IsChunkLighted(int a_ChunkX, int a_ChunkZ);