summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-18 17:48:50 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-18 17:48:50 +0100
commitd47ff5520373acb359590fb036b6a761af58cf75 (patch)
tree63f68f88d8bf8730da1dd32880ec526dc889bc6c /source/Protocol/Protocol125.cpp
parentRemoved all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols. (diff)
downloadcuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar
cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.gz
cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.bz2
cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.lz
cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.xz
cuberite-d47ff5520373acb359590fb036b6a761af58cf75.tar.zst
cuberite-d47ff5520373acb359590fb036b6a761af58cf75.zip
Diffstat (limited to 'source/Protocol/Protocol125.cpp')
-rw-r--r--source/Protocol/Protocol125.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp
index 0bed151ed..d45ea8837 100644
--- a/source/Protocol/Protocol125.cpp
+++ b/source/Protocol/Protocol125.cpp
@@ -670,6 +670,26 @@ void cProtocol125::SendSpawnObject(const cEntity & a_Entity, char a_ObjectType,
+void cProtocol125::SendSpawnVehicle(const cEntity & a_Vehicle, char a_VehicleType)
+{
+ cCSLock Lock(m_CSPacket);
+ WriteByte (PACKET_SPAWN_OBJECT);
+ WriteInt (a_Vehicle.GetUniqueID());
+ WriteByte (a_VehicleType);
+ WriteInt ((int)(a_Vehicle.GetPosX() * 32));
+ WriteInt ((int)(a_Vehicle.GetPosY() * 32));
+ WriteInt ((int)(a_Vehicle.GetPosZ() * 32));
+ WriteInt (1);
+ WriteShort(0); // TODO: SpeedX
+ WriteShort(0); // TODO: SpeedY
+ WriteShort(0); // TODO: SpeedZ
+ Flush();
+}
+
+
+
+
+
void cProtocol125::SendTeleportEntity(const cEntity & a_Entity)
{
cCSLock Lock(m_CSPacket);