From df15a278790cd17f626c1aab036608f6ed678471 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Oct 2014 18:19:39 +0300 Subject: Read all fields in processPlayerMoveToAttack. --- src/net/ea/beinghandler.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index fe42daedc..30dac2ab7 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -425,12 +425,13 @@ void BeingHandler::processPlayerMoveToAttack(Net::MessageIn &msg A_UNUSED) const { BLOCK_START("BeingHandler::processPlayerStop") - /* - * This is an *advisory* message, telling the client that - * it needs to move the character before attacking - * a target (out of range, obstruction in line of fire). - * We can safely ignore this... - */ + msg.readInt32("target id"); + msg.readInt16("target x"); + msg.readInt16("target y"); + msg.readInt16("x"); + msg.readInt16("y"); + msg.readInt16("attack range"); + if (localPlayer) localPlayer->fixAttackTarget(); BLOCK_END("BeingHandler::processPlayerStop") -- cgit v1.2.3-70-g09d2