From 6fec5f811c6afef9df2576e83b56b9b84326db44 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 24 Dec 2012 22:22:16 +0000 Subject: ProtoProxy: updated to 1.4.6 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1100 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- ProtoProxy/Connection.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ProtoProxy') diff --git a/ProtoProxy/Connection.cpp b/ProtoProxy/Connection.cpp index 3037f10cd..aba0c8255 100644 --- a/ProtoProxy/Connection.cpp +++ b/ProtoProxy/Connection.cpp @@ -1696,12 +1696,16 @@ bool cConnection::HandleServerSpawnObjectVehicle(void) HANDLE_SERVER_PACKET_READ(ReadBEInt, int, DataIndicator); AString ExtraData; short VelocityX, VelocityY, VelocityZ; + Byte Yaw, Pitch; if (DataIndicator != 0) { HANDLE_SERVER_PACKET_READ(ReadBEShort, short, SpeedX); HANDLE_SERVER_PACKET_READ(ReadBEShort, short, SpeedY); HANDLE_SERVER_PACKET_READ(ReadBEShort, short, SpeedZ); + HANDLE_SERVER_PACKET_READ(ReadByte, Byte, LocalYaw); + HANDLE_SERVER_PACKET_READ(ReadByte, Byte, LocalPitch); VelocityX = SpeedX; VelocityY = SpeedY; VelocityZ = SpeedZ; // Speed vars are local to this scope, but we need them available later + Yaw = LocalYaw; Pitch = LocalPitch; /* // This doesn't seem to work - for a falling block I'm getting no extra data at all int ExtraLen = 0; @@ -1733,6 +1737,7 @@ bool cConnection::HandleServerSpawnObjectVehicle(void) if (DataIndicator != 0) { Log(" Velocity = <%d, %d, %d>", VelocityX, VelocityY, VelocityZ); + Log(" Rotation = ", Yaw, Pitch); DataLog(ExtraData.data(), ExtraData.size(), " ExtraData size = %d", ExtraData.size()); } COPY_TO_CLIENT(); -- cgit v1.2.3