summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-22 00:04:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-22 00:04:35 +0300
commit9cbd54f5fe3b06eabdb1290ebbffe42257f460f8 (patch)
tree5a57456f06acde8e4ddf12fb4ea0338c0fe63cad /src/net/tmwa
parent3ff29eb31e08751f6e4993c62c0be8ac5b159b92 (diff)
downloadmv-9cbd54f5fe3b06eabdb1290ebbffe42257f460f8.tar.gz
mv-9cbd54f5fe3b06eabdb1290ebbffe42257f460f8.tar.bz2
mv-9cbd54f5fe3b06eabdb1290ebbffe42257f460f8.tar.xz
mv-9cbd54f5fe3b06eabdb1290ebbffe42257f460f8.zip
fix direction in packet SMSG_BEING_CHANGE_DIRECTION.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/beinghandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 05e60b43f..33c1db769 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -1413,8 +1413,8 @@ void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg)
msg.readInt16("unused");
- const uint8_t dir = static_cast<uint8_t>(
- msg.readUInt8("direction") & 0x0FU);
+ const uint8_t dir = Net::MessageIn::fromServerDirection(
+ static_cast<uint8_t>(msg.readUInt8("direction") & 0x0FU));
dstBeing->setDirection(dir);
if (localPlayer)
localPlayer->imitateDirection(dstBeing, dir);