From b3e0dd932a4980c8c40a259e010f4c437d6f497d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Dec 2012 21:35:47 +0300 Subject: Fix possible incorrect ditection. --- src/net/ea/beinghandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2