summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-20 16:15:39 +0100
committermadmaxoft <github@xoft.cz>2013-12-20 16:15:39 +0100
commit812375fab1517c70f56360719c10c2c61c03180d (patch)
tree74cea7b0529e8104d181236947f1e5fadb42c9e9 /src/Chunk.cpp
parentProperly fixed warnings in cFastRandom. (diff)
downloadcuberite-812375fab1517c70f56360719c10c2c61c03180d.tar
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.gz
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.bz2
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.lz
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.xz
cuberite-812375fab1517c70f56360719c10c2c61c03180d.tar.zst
cuberite-812375fab1517c70f56360719c10c2c61c03180d.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 3eb46213c..3ae4e36be 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -633,11 +633,6 @@ void cChunk::Tick(float a_Dt)
void cChunk::TickBlock(int a_RelX, int a_RelY, int a_RelZ)
{
unsigned Index = MakeIndex(a_RelX, a_RelY, a_RelZ);
- if (Index == INDEX_OUT_OF_RANGE)
- {
- // An assert has already been made in MakeIndex()
- return;
- }
cBlockHandler * Handler = BlockHandler(m_BlockTypes[Index]);
ASSERT(Handler != NULL); // Happenned on server restart, FS #243
Handler->OnUpdate(*this, a_RelX, a_RelY, a_RelZ);
@@ -1492,7 +1487,7 @@ void cChunk::QueueTickBlockNeighbors(int a_RelX, int a_RelY, int a_RelZ)
{ 0, 0, 1},
{ 0, 0, -1},
} ;
- for (int i = 0; i < ARRAYCOUNT(Coords); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(Coords); i++)
{
UnboundedQueueTickBlock(a_RelX + Coords[i].x, a_RelY + Coords[i].y, a_RelZ + Coords[i].z);
} // for i - Coords[]