summaryrefslogtreecommitdiffstats
path: root/src/LightingThread.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-01 14:04:17 +0100
committermadmaxoft <github@xoft.cz>2013-12-01 14:04:17 +0100
commitffd2caea66f087ff3b6a53c0d13a160570701ea6 (patch)
treea176d36fb7345034313afe06f70e3dcd5434cba1 /src/LightingThread.h
parentFixed linux compile errors and formatting in RedstoneSimulator.cpp (diff)
downloadcuberite-ffd2caea66f087ff3b6a53c0d13a160570701ea6.tar
cuberite-ffd2caea66f087ff3b6a53c0d13a160570701ea6.tar.gz
cuberite-ffd2caea66f087ff3b6a53c0d13a160570701ea6.tar.bz2
cuberite-ffd2caea66f087ff3b6a53c0d13a160570701ea6.tar.lz
cuberite-ffd2caea66f087ff3b6a53c0d13a160570701ea6.tar.xz
cuberite-ffd2caea66f087ff3b6a53c0d13a160570701ea6.tar.zst
cuberite-ffd2caea66f087ff3b6a53c0d13a160570701ea6.zip
Diffstat (limited to '')
-rw-r--r--src/LightingThread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LightingThread.h b/src/LightingThread.h
index 498755025..d8ce59f01 100644
--- a/src/LightingThread.h
+++ b/src/LightingThread.h
@@ -156,9 +156,9 @@ protected:
)
{
ASSERT(a_SrcIdx >= 0);
- ASSERT(a_SrcIdx < ARRAYCOUNT(m_SkyLight));
+ ASSERT(a_SrcIdx < (int)ARRAYCOUNT(m_SkyLight));
ASSERT(a_DstIdx >= 0);
- ASSERT(a_DstIdx < ARRAYCOUNT(m_BlockTypes));
+ ASSERT(a_DstIdx < (int)ARRAYCOUNT(m_BlockTypes));
if (a_Light[a_SrcIdx] <= a_Light[a_DstIdx] + g_BlockSpreadLightFalloff[m_BlockTypes[a_DstIdx]])
{