diff options
author | madmaxoft <github@xoft.cz> | 2014-03-30 20:02:30 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-30 20:02:30 +0200 |
commit | a5c0600e6c69c329fcafc2f9138b9439cf5f65ce (patch) | |
tree | a9fc9b6e6e52e6c2bf3fd617cf7450cf3cc12770 /src/LightingThread.h | |
parent | Merge branch 'NetherFortGen'. (diff) | |
download | cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.gz cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.bz2 cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.lz cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.xz cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.zst cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/LightingThread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LightingThread.h b/src/LightingThread.h index 198f27248..3209ad9b2 100644 --- a/src/LightingThread.h +++ b/src/LightingThread.h @@ -160,14 +160,14 @@ protected: inline void PropagateLight( NIBBLETYPE * a_Light, - int a_SrcIdx, int a_DstIdx, + unsigned int a_SrcIdx, unsigned int a_DstIdx, int & a_NumSeedsOut, unsigned char * a_IsSeedOut, unsigned int * a_SeedIdxOut ) { ASSERT(a_SrcIdx >= 0); - ASSERT(a_SrcIdx < (int)ARRAYCOUNT(m_SkyLight)); + ASSERT(a_SrcIdx < ARRAYCOUNT(m_SkyLight)); ASSERT(a_DstIdx >= 0); - ASSERT(a_DstIdx < (int)ARRAYCOUNT(m_BlockTypes)); + ASSERT(a_DstIdx < ARRAYCOUNT(m_BlockTypes)); if (a_Light[a_SrcIdx] <= a_Light[a_DstIdx] + cBlockInfo::GetSpreadLightFalloff(m_BlockTypes[a_DstIdx])) { |