From fb7c60ec11fde185d30ae6cc59e8c85756f85b8f Mon Sep 17 00:00:00 2001 From: faketruth Date: Sun, 4 Mar 2012 13:54:33 +0000 Subject: Changed signed char to unsigned char in block packets, so we can receive height up to 255 Blocks placed above 128 limit don't become obsidian anymore. This was due to the cChunk::MakeIndex() function return 0 when outside of bounds, it now returns an 'error constant' git-svn-id: http://mc-server.googlecode.com/svn/trunk@356 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/packets/cPacket_BlockChange.h | 2 +- source/packets/cPacket_BlockPlace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source/packets') diff --git a/source/packets/cPacket_BlockChange.h b/source/packets/cPacket_BlockChange.h index 0477dc9c9..a0b3c8843 100644 --- a/source/packets/cPacket_BlockChange.h +++ b/source/packets/cPacket_BlockChange.h @@ -18,7 +18,7 @@ public: virtual void Serialize(AString & a_Data) const override; int m_PosX; - char m_PosY; + unsigned char m_PosY; int m_PosZ; char m_BlockType; char m_BlockMeta; diff --git a/source/packets/cPacket_BlockPlace.h b/source/packets/cPacket_BlockPlace.h index 74bf63d28..9fa2fbbce 100644 --- a/source/packets/cPacket_BlockPlace.h +++ b/source/packets/cPacket_BlockPlace.h @@ -24,7 +24,7 @@ public: virtual int Parse(const char * a_Data, int a_Size) override; int m_PosX; //tolua_export - char m_PosY; //tolua_export + unsigned char m_PosY; //tolua_export int m_PosZ; //tolua_export char m_Direction; //tolua_export -- cgit v1.2.3