diff options
author | tycho <work.tycho@gmail.com> | 2015-05-30 12:11:17 +0200 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2015-05-30 12:11:17 +0200 |
commit | 06a74e45e247a2d23c6b5a238a3c1b9b17b6c341 (patch) | |
tree | 965c54b25acc4a3b7dee194f9194f885299e5656 /src/World.cpp | |
parent | Clean up Spawn Prepare (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/World.cpp | 8 |
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)); } |