diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-24 23:09:01 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-24 23:09:01 +0100 |
commit | b4ac9d702bcf958c7a658e7204306734e68058ad (patch) | |
tree | a813d6de18d6a331112846642d0bb5b2137d6259 /source/Protocol/Protocol125.cpp | |
parent | Added Netherbrick slab (patch contributed by STR_Warrior) (diff) | |
download | cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.gz cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.bz2 cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.lz cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.xz cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.tar.zst cuberite-b4ac9d702bcf958c7a658e7204306734e68058ad.zip |
Diffstat (limited to 'source/Protocol/Protocol125.cpp')
-rw-r--r-- | source/Protocol/Protocol125.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp index beac46c69..821cebfa1 100644 --- a/source/Protocol/Protocol125.cpp +++ b/source/Protocol/Protocol125.cpp @@ -633,8 +633,11 @@ void cProtocol125::SendSpawnMob(const cMonster & a_Mob) -void cProtocol125::SendSpawnObject(const cEntity & a_Entity, char a_ObjectType, int a_ObjectData, short a_SpeedX, short a_SpeedY, short a_SpeedZ)
+void cProtocol125::SendSpawnObject(const cEntity & a_Entity, char a_ObjectType, int a_ObjectData, short a_SpeedX, short a_SpeedY, short a_SpeedZ, Byte a_Yaw, Byte a_Pitch)
{
+ UNUSED(a_Yaw);
+ UNUSED(a_Pitch);
+
cCSLock Lock(m_CSPacket);
WriteByte(PACKET_SPAWN_OBJECT);
WriteInt (a_Entity.GetUniqueID());
@@ -643,11 +646,11 @@ void cProtocol125::SendSpawnObject(const cEntity & a_Entity, char a_ObjectType, WriteInt ((int)(a_Entity.GetPosY() * 32));
WriteInt ((int)(a_Entity.GetPosZ() * 32));
WriteInt (a_ObjectData);
- if( a_ObjectData != 0 )
+ if (a_ObjectData != 0)
{
- WriteShort( a_SpeedX );
- WriteShort( a_SpeedY );
- WriteShort( a_SpeedZ );
+ WriteShort(a_SpeedX);
+ WriteShort(a_SpeedY);
+ WriteShort(a_SpeedZ);
}
Flush();
}
|