diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 20:30:06 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 20:30:06 +0100 |
commit | 732b7349faa4ee78fee8da151db47853143c48fd (patch) | |
tree | 6c05ef9f2951b1096e9903f6bcf37428cbb06323 /source/packets | |
parent | Fixed *nix threading issue; (diff) | |
download | cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.gz cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.bz2 cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.lz cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.xz cuberite-732b7349faa4ee78fee8da151db47853143c48fd.tar.zst cuberite-732b7349faa4ee78fee8da151db47853143c48fd.zip |
Diffstat (limited to '')
-rw-r--r-- | source/packets/cPacket_SpawnMob.cpp | 11 | ||||
-rw-r--r-- | source/packets/cPacket_SpawnMob.h | 3 |
2 files changed, 8 insertions, 6 deletions
diff --git a/source/packets/cPacket_SpawnMob.cpp b/source/packets/cPacket_SpawnMob.cpp index ba0029dd3..d3f1850b3 100644 --- a/source/packets/cPacket_SpawnMob.cpp +++ b/source/packets/cPacket_SpawnMob.cpp @@ -26,6 +26,7 @@ cPacket_SpawnMob::cPacket_SpawnMob() , m_Pitch( 0 )
, m_MetaDataSize( 0 )
, m_MetaData( 0 )
+ , m_HeadYaw(0)
{
m_PacketID = E_SPAWN_MOB;
}
@@ -40,10 +41,11 @@ cPacket_SpawnMob::cPacket_SpawnMob( const cPacket_SpawnMob & a_Clone ) m_PacketID = E_SPAWN_MOB;
m_UniqueID = a_Clone.m_UniqueID;
- m_Type = a_Clone.m_Type;
- *m_Pos = *a_Clone.m_Pos;
- m_Yaw = a_Clone.m_Yaw;
- m_Pitch = a_Clone.m_Pitch;
+ m_Type = a_Clone.m_Type;
+ *m_Pos = *a_Clone.m_Pos;
+ m_Yaw = a_Clone.m_Yaw;
+ m_Pitch = a_Clone.m_Pitch;
+ m_HeadYaw = a_Clone.m_HeadYaw;
m_MetaDataSize = a_Clone.m_MetaDataSize;
m_MetaData = new char[m_MetaDataSize];
@@ -64,6 +66,7 @@ void cPacket_SpawnMob::Serialize(AString & a_Data) const AppendInteger (a_Data, m_Pos->z);
AppendByte (a_Data, m_Yaw);
AppendByte (a_Data, m_Pitch);
+ AppendByte (a_Data, m_HeadYaw);
AppendData (a_Data, m_MetaData, m_MetaDataSize);
}
diff --git a/source/packets/cPacket_SpawnMob.h b/source/packets/cPacket_SpawnMob.h index 8a1ef2264..ff579af99 100644 --- a/source/packets/cPacket_SpawnMob.h +++ b/source/packets/cPacket_SpawnMob.h @@ -28,8 +28,7 @@ public: Vector3i* m_Pos;
char m_Yaw;
char m_Pitch;
-
- static const unsigned int c_Size = 1 + 4 + 1 + 4 + 4 + 4 + 1 + 1; // + metadata
+ char m_HeadYaw;
unsigned int m_MetaDataSize;
char * m_MetaData;
|