diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-06 18:19:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-06 18:19:39 +0300 |
commit | df15a278790cd17f626c1aab036608f6ed678471 (patch) | |
tree | b40c75a6119265e6013acb948048e7515c1967a2 | |
parent | 79f974b751c26b55353d7cea7659dba691870ce7 (diff) | |
download | manaplus-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.cpp | 13 |
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") |