1
0

Moved the Speed member into cEntity class instead of its descendants.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1222 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2013-02-21 21:55:36 +00:00
parent 99876ea4ba
commit 4ce0c5a983
17 changed files with 180 additions and 385 deletions

View File

@@ -210,7 +210,7 @@ void cProtocol146::SendSpawnFallingBlock(const cFallingBlock & a_FallingBlock)
void cProtocol146::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)
void cProtocol146::SendSpawnObject(const cEntity & a_Entity, char a_ObjectType, int a_ObjectData, Byte a_Yaw, Byte a_Pitch)
{
cCSLock Lock(m_CSPacket);
WriteByte(PACKET_SPAWN_OBJECT);
@@ -222,9 +222,10 @@ void cProtocol146::SendSpawnObject(const cEntity & a_Entity, char a_ObjectType,
WriteInt (a_ObjectData);
if (a_ObjectData != 0)
{
WriteShort(a_SpeedX);
WriteShort(a_SpeedY);
WriteShort(a_SpeedZ);
// TODO: Proper speed units
WriteShort((short)a_Entity.GetSpeedX());
WriteShort((short)a_Entity.GetSpeedY());
WriteShort((short)a_Entity.GetSpeedZ());
WriteByte(a_Yaw);
WriteByte(a_Pitch);
}