diff options
author | worktycho <work.tycho@gmail.com> | 2015-10-04 15:55:42 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-10-04 15:55:42 +0200 |
commit | 0786fda18b08ee26a9bdcda7b17ef9979be4585a (patch) | |
tree | 06ae98c7848c29b812b50b91ab4b2cbb49cd6e13 /src/LightingThread.cpp | |
parent | Merge pull request #2519 from cuberite/RemoveStyleCheckFromTravis (diff) | |
parent | Fixed a race condition between chunk loader and generator. (diff) | |
download | cuberite-0786fda18b08ee26a9bdcda7b17ef9979be4585a.tar cuberite-0786fda18b08ee26a9bdcda7b17ef9979be4585a.tar.gz cuberite-0786fda18b08ee26a9bdcda7b17ef9979be4585a.tar.bz2 cuberite-0786fda18b08ee26a9bdcda7b17ef9979be4585a.tar.lz cuberite-0786fda18b08ee26a9bdcda7b17ef9979be4585a.tar.xz cuberite-0786fda18b08ee26a9bdcda7b17ef9979be4585a.tar.zst cuberite-0786fda18b08ee26a9bdcda7b17ef9979be4585a.zip |
Diffstat (limited to 'src/LightingThread.cpp')
-rw-r--r-- | src/LightingThread.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LightingThread.cpp b/src/LightingThread.cpp index b5102c11b..25956ae86 100644 --- a/src/LightingThread.cpp +++ b/src/LightingThread.cpp @@ -238,12 +238,12 @@ void cLightingThread::Execute(void) void cLightingThread::LightChunk(cLightingChunkStay & a_Item) { - // If the chunk is already lit, skip it: + // If the chunk is already lit, skip it (report as success): if (m_World->IsChunkLighted(a_Item.m_ChunkX, a_Item.m_ChunkZ)) { if (a_Item.m_CallbackAfter != nullptr) { - a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ); + a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ, true); } return; } @@ -324,7 +324,7 @@ void cLightingThread::LightChunk(cLightingChunkStay & a_Item) if (a_Item.m_CallbackAfter != nullptr) { - a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ); + a_Item.m_CallbackAfter->Call(a_Item.m_ChunkX, a_Item.m_ChunkZ, true); } } |