diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-01 19:56:56 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-01 19:56:56 +0100 |
commit | a2f6ab93b6140740ca2562d5f82022a64c79feb6 (patch) | |
tree | 67b6272f417ea12dfa1b9bcf74d1fad15dc74802 /source/packets/cPacket_Respawn.h | |
parent | Clients can join the server, but chunks are sent completely empty (diff) | |
download | cuberite-a2f6ab93b6140740ca2562d5f82022a64c79feb6.tar cuberite-a2f6ab93b6140740ca2562d5f82022a64c79feb6.tar.gz cuberite-a2f6ab93b6140740ca2562d5f82022a64c79feb6.tar.bz2 cuberite-a2f6ab93b6140740ca2562d5f82022a64c79feb6.tar.lz cuberite-a2f6ab93b6140740ca2562d5f82022a64c79feb6.tar.xz cuberite-a2f6ab93b6140740ca2562d5f82022a64c79feb6.tar.zst cuberite-a2f6ab93b6140740ca2562d5f82022a64c79feb6.zip |
Diffstat (limited to '')
-rw-r--r-- | source/packets/cPacket_Respawn.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/packets/cPacket_Respawn.h b/source/packets/cPacket_Respawn.h index 7f5950945..dbb4957c5 100644 --- a/source/packets/cPacket_Respawn.h +++ b/source/packets/cPacket_Respawn.h @@ -13,24 +13,40 @@ class cPacket_Respawn : public cPacket {
public:
cPacket_Respawn()
+#if (MINECRAFT_1_2_2 == 1)
+ : m_Dimension( 0 )
+ , m_Difficulty( 0 )
+ , m_CreativeMode( 0 )
+ , m_WorldHeight( 0 )
+ , m_LevelType( cPacket_Login::LEVEL_TYPE_DEFAULT )
+#else
: m_World( 0 )
, m_Difficulty( 0 )
, m_CreativeMode( 0 )
, m_WorldHeight( 0 )
, m_MapSeed( 0 )
, m_LevelType( cPacket_Login::LEVEL_TYPE_DEFAULT )
+#endif
{ m_PacketID = E_RESPAWN; }
virtual cPacket* Clone() const { return new cPacket_Respawn( *this ); }
virtual int Parse(const char * a_Data, int a_Size) override;
virtual void Serialize(AString & a_Data) const override;
+#if (MINECRAFT_1_2_2 == 1)
+ int m_Dimension;
+ char m_Difficulty;
+ char m_CreativeMode;
+ short m_WorldHeight;
+ AString m_LevelType;
+#else
char m_World;
char m_Difficulty;
char m_CreativeMode;
short m_WorldHeight;
long long m_MapSeed;
AString m_LevelType;
+#endif
static const unsigned int c_Size = 1 + 1 + 1 + 1 + 2 + 8 + 2;
};
|