summaryrefslogtreecommitdiffstats
path: root/source/cChunk.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-17 18:56:25 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-17 18:56:25 +0100
commit510133bd35cad951a02f7d102f27badded7683a4 (patch)
tree3c995df9f2fd07806f053f6b57bd67686661a84c /source/cChunk.h
parentRemoved useless log messages (diff)
downloadcuberite-510133bd35cad951a02f7d102f27badded7683a4.tar
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.gz
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.bz2
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.lz
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.xz
cuberite-510133bd35cad951a02f7d102f27badded7683a4.tar.zst
cuberite-510133bd35cad951a02f7d102f27badded7683a4.zip
Diffstat (limited to '')
-rw-r--r--source/cChunk.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/source/cChunk.h b/source/cChunk.h
index 66efa0d1e..b750e10db 100644
--- a/source/cChunk.h
+++ b/source/cChunk.h
@@ -20,6 +20,15 @@
+/** This is really only a placeholder to be used in places where we need to "make up" a chunk's Y coord.
+It will help us when the new chunk format comes out and we need to patch everything up for compatibility.
+*/
+#define ZERO_CHUNK_Y 0
+
+
+
+
+
namespace Json
{
class Value;
@@ -238,13 +247,14 @@ class cChunkCoords
{
public:
int m_ChunkX;
+ int m_ChunkY;
int m_ChunkZ;
- cChunkCoords(int a_ChunkX, int a_ChunkZ) : m_ChunkX(a_ChunkX), m_ChunkZ(a_ChunkZ) {}
+ cChunkCoords(int a_ChunkX, int a_ChunkY, int a_ChunkZ) : m_ChunkX(a_ChunkX), m_ChunkY(a_ChunkY), m_ChunkZ(a_ChunkZ) {}
bool operator == (const cChunkCoords & a_Other)
{
- return ((m_ChunkX == a_Other.m_ChunkX) && (m_ChunkZ == a_Other.m_ChunkZ));
+ return ((m_ChunkX == a_Other.m_ChunkX) && (m_ChunkY == a_Other.m_ChunkY) && (m_ChunkZ == a_Other.m_ChunkZ));
}
} ;