From 7b840aa5d8c925f8ced6289a5ed3dde4a6f8e77b Mon Sep 17 00:00:00 2001 From: faketruth Date: Fri, 20 Jan 2012 17:39:16 +0000 Subject: MCServer is now compatible with Minecraft client 1.1 (as long as the client is not using any mods/plugins I think) git-svn-id: http://mc-server.googlecode.com/svn/trunk@165 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/packets/cPacket_Login.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/packets/cPacket_Login.h') diff --git a/source/packets/cPacket_Login.h b/source/packets/cPacket_Login.h index 91919a799..71fa6e9c1 100644 --- a/source/packets/cPacket_Login.h +++ b/source/packets/cPacket_Login.h @@ -15,6 +15,7 @@ public: , m_Difficulty( 0 ) , m_WorldHeight( 0 ) , m_MaxPlayers( 0 ) + , m_LevelType( LEVEL_TYPE_DEFAULT ) { m_PacketID = E_LOGIN; } virtual cPacket* Clone() const { return new cPacket_Login(*this); } @@ -24,10 +25,15 @@ public: int m_ProtocolVersion; //tolua_export std::string m_Username; //tolua_export long long m_MapSeed; //tolua_export + std::string m_LevelType; //tolua_export int m_ServerMode; //tolua_export char m_Dimension; //tolua_export char m_Difficulty; //tolua_export unsigned char m_WorldHeight; //tolua_export unsigned char m_MaxPlayers; //tolua_export - static const unsigned int c_Size = 1 + 4 + 2 + 8 + 4 + 1 + 1 + 1 + 1; // Minimal size + static const unsigned int c_Size = 1 + 4 + 2 + 8 + 2 + 4 + 1 + 1 + 1 + 1; // Minimal size + + + static const std::string LEVEL_TYPE_DEFAULT; + static const std::string LEVEL_TYPE_SUPERFLAT; }; //tolua_export -- cgit v1.2.3