diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 14:49:40 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 14:49:40 +0100 |
commit | e5b91a8d97f1f4af295b001708f434dda5ced983 (patch) | |
tree | 43cede2ff243c6967beda61c211794c7d0a7db1b /source/cChunk.inl.h | |
parent | You can change axis ordering by setting AXIS_ORDER to AXIS_ORDER_XZY in cChunk.h !THIS WILL SCREW UP YOUR WORLDS THOUGH! (diff) | |
download | cuberite-e5b91a8d97f1f4af295b001708f434dda5ced983.tar cuberite-e5b91a8d97f1f4af295b001708f434dda5ced983.tar.gz cuberite-e5b91a8d97f1f4af295b001708f434dda5ced983.tar.bz2 cuberite-e5b91a8d97f1f4af295b001708f434dda5ced983.tar.lz cuberite-e5b91a8d97f1f4af295b001708f434dda5ced983.tar.xz cuberite-e5b91a8d97f1f4af295b001708f434dda5ced983.tar.zst cuberite-e5b91a8d97f1f4af295b001708f434dda5ced983.zip |
Diffstat (limited to 'source/cChunk.inl.h')
-rw-r--r-- | source/cChunk.inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cChunk.inl.h b/source/cChunk.inl.h index 0f0c25c09..69c3c4bbe 100644 --- a/source/cChunk.inl.h +++ b/source/cChunk.inl.h @@ -40,7 +40,7 @@ char cChunk::GetNibble(char* a_Buffer, int x, int y, int z) const int cindex = MakeIndexNoCheck(x, y, z)/2;
#if AXIS_ORDER == AXIS_ORDER_XZY
if( (x & 1) == 0 )
-#else if AXIS_ORDER == AXIS_ORDER_YZX
+#elif AXIS_ORDER == AXIS_ORDER_YZX
if( (y & 1) == 0 )
#endif
{ // First half byte
@@ -89,7 +89,7 @@ void cChunk::SetNibble(char* a_Buffer, int x, int y, int z, char light) int cindex = MakeIndexNoCheck(x, y, z)/2;
#if AXIS_ORDER == AXIS_ORDER_XZY
if( (x & 1) == 0 )
-#else if AXIS_ORDER == AXIS_ORDER_YZX
+#elif AXIS_ORDER == AXIS_ORDER_YZX
if( (y & 1) == 0 )
#endif
{ // First half byte
|