diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-31 16:52:51 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-31 16:52:51 +0100 |
commit | 173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93 (patch) | |
tree | f22cc0530050584e430ede31481b34bff48b3e2f /src/LightingThread.cpp | |
parent | fixed bad merge (diff) | |
parent | removed unneccisary cast (diff) | |
download | cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.gz cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.bz2 cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.lz cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.xz cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.tar.zst cuberite-173ed0e653d05dbcfac9cfeeb6b75b7ea61b0e93.zip |
Diffstat (limited to '')
-rw-r--r-- | src/LightingThread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LightingThread.cpp b/src/LightingThread.cpp index d7e60e458..7c3cc9c76 100644 --- a/src/LightingThread.cpp +++ b/src/LightingThread.cpp @@ -189,7 +189,7 @@ void cLightingThread::ChunkReady(int a_ChunkX, int a_ChunkZ) { if ( (itr->x - a_ChunkX >= -1) && (itr->x - a_ChunkX <= 1) && - (itr->x - a_ChunkX >= -1) && (itr->x - a_ChunkX <= 1) + (itr->z - a_ChunkZ >= -1) && (itr->z - a_ChunkZ <= 1) ) { // It is a neighbor @@ -495,6 +495,7 @@ void cLightingThread::CalcLightStep( int & a_NumSeedsOut, unsigned char * a_IsSeedOut, unsigned int * a_SeedIdxOut ) { + UNUSED(a_IsSeedIn); int NumSeedsOut = 0; for (int i = 0; i < a_NumSeedsIn; i++) { |