summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-13 11:48:18 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-13 11:48:18 +0200
commit7bca7f3cb9390cf2bad282e427e3a7ec0b748614 (patch)
treea591eb0bda23a33a7b3ebfe4ec2a1fed3064b227
parentProtoProxy: Added the PACKET_ENTITY_ACTION packet handling (diff)
downloadcuberite-7bca7f3cb9390cf2bad282e427e3a7ec0b748614.tar
cuberite-7bca7f3cb9390cf2bad282e427e3a7ec0b748614.tar.gz
cuberite-7bca7f3cb9390cf2bad282e427e3a7ec0b748614.tar.bz2
cuberite-7bca7f3cb9390cf2bad282e427e3a7ec0b748614.tar.lz
cuberite-7bca7f3cb9390cf2bad282e427e3a7ec0b748614.tar.xz
cuberite-7bca7f3cb9390cf2bad282e427e3a7ec0b748614.tar.zst
cuberite-7bca7f3cb9390cf2bad282e427e3a7ec0b748614.zip
-rw-r--r--ProtoProxy/Connection.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/ProtoProxy/Connection.cpp b/ProtoProxy/Connection.cpp
index b0f63493b..8b8c1c85e 100644
--- a/ProtoProxy/Connection.cpp
+++ b/ProtoProxy/Connection.cpp
@@ -859,12 +859,13 @@ bool cConnection::HandleClientPing(void)
bool cConnection::HandleClientPlayerAbilities(void)
{
- HANDLE_CLIENT_PACKET_READ(ReadChar, char, IsInvulnerable);
- HANDLE_CLIENT_PACKET_READ(ReadChar, char, IsFlying);
- HANDLE_CLIENT_PACKET_READ(ReadChar, char, CanFly);
- HANDLE_CLIENT_PACKET_READ(ReadChar, char, IsInstaMine);
+ HANDLE_CLIENT_PACKET_READ(ReadChar, char, Flags);
+ HANDLE_CLIENT_PACKET_READ(ReadByte, Byte, FlyingSpeed);
+ HANDLE_CLIENT_PACKET_READ(ReadByte, Byte, WalkingSpeed);
Log("Receives a PACKET_PLAYER_ABILITIES from the client:");
- Log(" Flags = %d, %d, %d, %d", IsInvulnerable, IsFlying, CanFly, IsInstaMine);
+ Log(" Flags = %d (0x%x)", Flags, Flags);
+ Log(" FlyingSpeed = %d", FlyingSpeed);
+ Log(" WalkingSpeed = %d", WalkingSpeed);
COPY_TO_SERVER();
return true;
}