summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-06 18:19:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-06 18:19:39 +0300
commitdf15a278790cd17f626c1aab036608f6ed678471 (patch)
treeb40c75a6119265e6013acb948048e7515c1967a2
parent79f974b751c26b55353d7cea7659dba691870ce7 (diff)
downloadmanaplus-df15a278790cd17f626c1aab036608f6ed678471.tar.gz
manaplus-df15a278790cd17f626c1aab036608f6ed678471.tar.bz2
manaplus-df15a278790cd17f626c1aab036608f6ed678471.tar.xz
manaplus-df15a278790cd17f626c1aab036608f6ed678471.zip
Read all fields in processPlayerMoveToAttack.
-rw-r--r--src/net/ea/beinghandler.cpp13
1 files 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")