diff options
author | madmaxoft <github@xoft.cz> | 2013-12-20 16:01:34 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-12-20 16:01:34 +0100 |
commit | 8610d45ef18f075e7fa207732233ddbd69bb604b (patch) | |
tree | 3f7401c1dfb8926d1917f0c92762c3507ca4a51b /src/Blocks | |
parent | Fixed melon and pumpkin growing. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Blocks/BlockCactus.h | 2 | ||||
-rw-r--r-- | src/Blocks/BlockPortal.h | 4 | ||||
-rw-r--r-- | src/Blocks/BlockSugarcane.h | 2 | ||||
-rw-r--r-- | src/Blocks/BlockVine.h | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/Blocks/BlockCactus.h b/src/Blocks/BlockCactus.h index 7a9088178..f77df5e42 100644 --- a/src/Blocks/BlockCactus.h +++ b/src/Blocks/BlockCactus.h @@ -48,7 +48,7 @@ public: { 0, -1}, { 0, 1}, } ; - for (int i = 0; i < ARRAYCOUNT(Coords); i++) + for (size_t i = 0; i < ARRAYCOUNT(Coords); i++) { BLOCKTYPE BlockType; NIBBLETYPE BlockMeta; diff --git a/src/Blocks/BlockPortal.h b/src/Blocks/BlockPortal.h index c56f0cbc8..d88d14fc9 100644 --- a/src/Blocks/BlockPortal.h +++ b/src/Blocks/BlockPortal.h @@ -61,7 +61,7 @@ public: {-1, 0, 0}, } ; - for (int i = 0; i < ARRAYCOUNT(PortalCheck); i++) + for (size_t i = 0; i < ARRAYCOUNT(PortalCheck); i++) { BLOCKTYPE Block; a_Chunk.UnboundedRelGetBlockType(a_RelX + PortalCheck[i].x, a_RelY + PortalCheck[i].y, a_RelZ + PortalCheck[i].z, Block); @@ -86,7 +86,7 @@ public: { 0, 0, 1}, } ; - for (int i = 0; i < ARRAYCOUNT(PortalCheck); i++) + for (size_t i = 0; i < ARRAYCOUNT(PortalCheck); i++) { BLOCKTYPE Block; a_Chunk.UnboundedRelGetBlockType(a_RelX + PortalCheck[i].x, a_RelY + PortalCheck[i].y, a_RelZ + PortalCheck[i].z, Block); diff --git a/src/Blocks/BlockSugarcane.h b/src/Blocks/BlockSugarcane.h index 02d7a2fe4..9cff94800 100644 --- a/src/Blocks/BlockSugarcane.h +++ b/src/Blocks/BlockSugarcane.h @@ -47,7 +47,7 @@ public: { 0, 1}, } ; a_RelY -= 1; - for (int i = 0; i < ARRAYCOUNT(Coords); i++) + for (size_t i = 0; i < ARRAYCOUNT(Coords); i++) { BLOCKTYPE BlockType; NIBBLETYPE BlockMeta; diff --git a/src/Blocks/BlockVine.h b/src/Blocks/BlockVine.h index 2c9f67cab..60aaa9e4b 100644 --- a/src/Blocks/BlockVine.h +++ b/src/Blocks/BlockVine.h @@ -89,7 +89,7 @@ public: { 1, 0, 8}, // east, XP } ; int res = 0; - for (int i = 0; i < ARRAYCOUNT(Coords); i++) + for (size_t i = 0; i < ARRAYCOUNT(Coords); i++) { BLOCKTYPE BlockType; NIBBLETYPE BlockMeta; |