summaryrefslogtreecommitdiffstats
path: root/src/BlockID.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-20 16:01:34 +0100
committermadmaxoft <github@xoft.cz>2013-12-20 16:01:34 +0100
commit8610d45ef18f075e7fa207732233ddbd69bb604b (patch)
tree3f7401c1dfb8926d1917f0c92762c3507ca4a51b /src/BlockID.cpp
parentFixed melon and pumpkin growing. (diff)
downloadcuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar
cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.gz
cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.bz2
cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.lz
cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.xz
cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.zst
cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.zip
Diffstat (limited to 'src/BlockID.cpp')
-rw-r--r--src/BlockID.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/BlockID.cpp b/src/BlockID.cpp
index 708618d25..2ca9dc49a 100644
--- a/src/BlockID.cpp
+++ b/src/BlockID.cpp
@@ -353,7 +353,7 @@ EMCSBiome StringToBiome(const AString & a_BiomeString)
{biMesaPlateauM, "MesaPlateauM"},
} ;
- for (int i = 0; i < ARRAYCOUNT(BiomeMap); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(BiomeMap); i++)
{
if (NoCaseCompare(BiomeMap[i].m_String, a_BiomeString) == 0)
{
@@ -403,7 +403,7 @@ int StringToMobType(const AString & a_MobString)
{cMonster::mtIronGolem, "IronGolem"},
{cMonster::mtVillager, "Villager"},
};
- for (int i = 0; i < ARRAYCOUNT(MobMap); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(MobMap); i++)
{
if (NoCaseCompare(MobMap[i].m_String, a_MobString) == 0)
{
@@ -442,7 +442,7 @@ eDimension StringToDimension(const AString & a_DimensionString)
{ dimEnd, "End"},
{ dimEnd, "Sky"}, // Old name for End
} ;
- for (int i = 0; i < ARRAYCOUNT(DimensionMap); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(DimensionMap); i++)
{
if (NoCaseCompare(DimensionMap[i].m_String, a_DimensionString) == 0)
{
@@ -549,7 +549,7 @@ eDamageType StringToDamageType(const AString & a_DamageTypeString)
{ dtFireContact, "dtInFire"},
{ dtAdmin, "dtPlugin"},
} ;
- for (int i = 0; i < ARRAYCOUNT(DamageTypeMap); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(DamageTypeMap); i++)
{
if (NoCaseCompare(DamageTypeMap[i].m_String, a_DamageTypeString) == 0)
{
@@ -594,14 +594,14 @@ public:
memset(g_BlockIsTorchPlaceable, 0x00, sizeof(g_BlockIsTorchPlaceable));
// Setting bools to true must be done manually, see http://forum.mc-server.org/showthread.php?tid=629&pid=5415#pid5415
- for (int i = 0; i < ARRAYCOUNT(g_BlockIsSnowable); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(g_BlockIsSnowable); i++)
{
g_BlockIsSnowable[i] = true;
}
memset(g_BlockRequiresSpecialTool, 0x00, sizeof(g_BlockRequiresSpecialTool)); // Set all blocks to false
// Setting bools to true must be done manually, see http://forum.mc-server.org/showthread.php?tid=629&pid=5415#pid5415
- for (int i = 0; i < ARRAYCOUNT(g_BlockIsSolid); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(g_BlockIsSolid); i++)
{
g_BlockIsSolid[i] = true;
}