diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-04 15:09:35 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-04 15:09:35 +0100 |
commit | f1f762c4fa77e24a16ad4843cfd62ef636749155 (patch) | |
tree | 3d334c1fd95b7d229211b2630202e3bef91c3230 /source/cChunk.cpp | |
parent | Changed signed char to unsigned char in block packets, so we can receive height up to 255 (diff) | |
download | cuberite-f1f762c4fa77e24a16ad4843cfd62ef636749155.tar cuberite-f1f762c4fa77e24a16ad4843cfd62ef636749155.tar.gz cuberite-f1f762c4fa77e24a16ad4843cfd62ef636749155.tar.bz2 cuberite-f1f762c4fa77e24a16ad4843cfd62ef636749155.tar.lz cuberite-f1f762c4fa77e24a16ad4843cfd62ef636749155.tar.xz cuberite-f1f762c4fa77e24a16ad4843cfd62ef636749155.tar.zst cuberite-f1f762c4fa77e24a16ad4843cfd62ef636749155.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cChunk.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 )
{
|