summaryrefslogtreecommitdiffstats
path: root/src/Simulator/FireSimulator.cpp
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 16:33:04 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 16:33:04 +0100
commit32e6be002d70f8fec486f0127fc307a21f1ff43e (patch)
tree5601738de3331ff3bfa70bd286784bdd4ba60055 /src/Simulator/FireSimulator.cpp
parentmade LUA shared unless STATIC_LUA is set (diff)
parentFixed warnings in HTTP parser. (diff)
downloadcuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar
cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.gz
cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.bz2
cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.lz
cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.xz
cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.zst
cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.zip
Diffstat (limited to '')
-rw-r--r--src/Simulator/FireSimulator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Simulator/FireSimulator.cpp b/src/Simulator/FireSimulator.cpp
index 03e4f6e45..d7c5ab3b4 100644
--- a/src/Simulator/FireSimulator.cpp
+++ b/src/Simulator/FireSimulator.cpp
@@ -241,7 +241,7 @@ int cFireSimulator::GetBurnStepTime(cChunk * a_Chunk, int a_RelX, int a_RelY, in
IsBlockBelowSolid = g_BlockIsSolid[BlockBelow];
}
- for (int i = 0; i < ARRAYCOUNT(gCrossCoords); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(gCrossCoords); i++)
{
BLOCKTYPE BlockType;
NIBBLETYPE BlockMeta;
@@ -317,7 +317,7 @@ void cFireSimulator::TrySpreadFire(cChunk * a_Chunk, int a_RelX, int a_RelY, int
void cFireSimulator::RemoveFuelNeighbors(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ)
{
- for (int i = 0; i < ARRAYCOUNT(gNeighborCoords); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(gNeighborCoords); i++)
{
BLOCKTYPE BlockType;
NIBBLETYPE BlockMeta;
@@ -358,7 +358,7 @@ bool cFireSimulator::CanStartFireInBlock(cChunk * a_NearChunk, int a_RelX, int a
return false;
}
- for (int i = 0; i < ARRAYCOUNT(gNeighborCoords); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(gNeighborCoords); i++)
{
if (!a_NearChunk->UnboundedRelGetBlock(a_RelX + gNeighborCoords[i].x, a_RelY + gNeighborCoords[i].y, a_RelZ + gNeighborCoords[i].z, BlockType, BlockMeta))
{