summaryrefslogtreecommitdiff
path: root/src/net/ea/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-04 21:35:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-04 21:35:47 +0300
commitb3e0dd932a4980c8c40a259e010f4c437d6f497d (patch)
tree1fdab9ac4a73d98c0b30a652430d9131fe3b6438 /src/net/ea/beinghandler.cpp
parent3181bc7610b80c360dc59a88b0408099e8ae3bc9 (diff)
downloadmanaverse-b3e0dd932a4980c8c40a259e010f4c437d6f497d.tar.gz
manaverse-b3e0dd932a4980c8c40a259e010f4c437d6f497d.tar.bz2
manaverse-b3e0dd932a4980c8c40a259e010f4c437d6f497d.tar.xz
manaverse-b3e0dd932a4980c8c40a259e010f4c437d6f497d.zip
Fix possible incorrect ditection.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r--src/net/ea/beinghandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 528608d7e..bb7b7bc67 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -691,7 +691,7 @@ void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg)
msg.readInt16(); // unused
- const unsigned char dir = msg.readInt8();
+ const unsigned char dir = msg.readInt8() & 0x0f;
dstBeing->setDirection(dir);
if (player_node)
player_node->imitateDirection(dstBeing, dir);