From f1f762c4fa77e24a16ad4843cfd62ef636749155 Mon Sep 17 00:00:00 2001 From: faketruth Date: Sun, 4 Mar 2012 14:09:35 +0000 Subject: The world can now truly be made higher by incrementing cChunk::c_ChunkHeight to 256. !!HOWEVER THIS WILL DESTROY YOUR SAVED WORLD!! git-svn-id: http://mc-server.googlecode.com/svn/trunk@357 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunk.cpp | 2 +- source/cChunk.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/cChunk.cpp b/source/cChunk.cpp index a622a5148..fc26b380d 100644 --- a/source/cChunk.cpp +++ b/source/cChunk.cpp @@ -1041,7 +1041,7 @@ void cChunk::SendBlockTo( int a_X, int a_Y, int a_Z, cClientHandle* a_Client ) unsigned int index = MakeIndex( a_X, a_Y, a_Z ); cPacket_BlockChange BlockChange; BlockChange.m_PosX = a_X + m_PosX*c_ChunkWidth; - BlockChange.m_PosY = (char)(a_Y + m_PosY*c_ChunkHeight); + BlockChange.m_PosY = (unsigned char)(a_Y + m_PosY*c_ChunkHeight); BlockChange.m_PosZ = a_Z + m_PosZ*c_ChunkWidth; if( index != INDEX_OUT_OF_RANGE ) { diff --git a/source/cChunk.h b/source/cChunk.h index 0759b79f0..f2e623f6e 100644 --- a/source/cChunk.h +++ b/source/cChunk.h @@ -113,7 +113,7 @@ class cChunk { public: static const int c_ChunkWidth = 16; - static const int c_ChunkHeight = 128; + static const int c_ChunkHeight = 128; //256; static const int c_NumBlocks = c_ChunkWidth * c_ChunkHeight * c_ChunkWidth; static const int c_BlockDataSize = c_NumBlocks * 2 + (c_NumBlocks/2); // 2.5 * numblocks -- cgit v1.2.3