1
0

ProtoProxy: updated to 1.4.6

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1100 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-12-24 22:22:16 +00:00
parent b4ac9d702b
commit 6fec5f811c

View File

@ -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 %d, pitch %d>", Yaw, Pitch);
DataLog(ExtraData.data(), ExtraData.size(), " ExtraData size = %d", ExtraData.size());
}
COPY_TO_CLIENT();