summaryrefslogtreecommitdiffstats
path: root/source/cChunk.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 14:49:40 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 14:49:40 +0100
commite5b91a8d97f1f4af295b001708f434dda5ced983 (patch)
tree43cede2ff243c6967beda61c211794c7d0a7db1b /source/cChunk.cpp
parentYou can change axis ordering by setting AXIS_ORDER to AXIS_ORDER_XZY in cChunk.h !THIS WILL SCREW UP YOUR WORLDS THOUGH! (diff)
downloadcuberite-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 '')
-rw-r--r--source/cChunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp
index f1f7300c6..9d0fc8bdf 100644
--- a/source/cChunk.cpp
+++ b/source/cChunk.cpp
@@ -541,7 +541,7 @@ void cChunk::Tick(float a_Dt, MTRand & a_TickRandom)
{
#if AXIS_ORDER == AXIS_ORDER_YZX
char AboveBlock = GetBlock( Index+1 );
-#else if AXIS_ORDER == AXIS_ORDER_XZY
+#elif AXIS_ORDER == AXIS_ORDER_XZY
char AboveBlock = GetBlock( Index + (c_ChunkWidth*c_ChunkWidth) );
#endif
if (!( (AboveBlock == 0) || (g_BlockOneHitDig[AboveBlock]) || (g_BlockTransparent[AboveBlock]) ) ) //changed to not allow grass if any one hit object is on top