diff options
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index 7fc28f15..8ad15f76 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -57,6 +57,7 @@ BeingHandler::BeingHandler(bool enableSync): SMSG_BEING_CHANGE_LOOKS, SMSG_BEING_CHANGE_LOOKS2, SMSG_BEING_NAME_RESPONSE, + SMSG_BEING_CHANGE_DIRECTION, SMSG_PLAYER_UPDATE_1, SMSG_PLAYER_UPDATE_2, SMSG_PLAYER_MOVE, @@ -414,6 +415,18 @@ void BeingHandler::handleMessage(MessageIn &msg) } break; + case SMSG_BEING_CHANGE_DIRECTION: + if (!(dstBeing = beingManager->findBeing(msg.readInt32()))) + { + break; + } + + msg.readInt16(); // unused + + dstBeing->setDirection(msg.readInt8()); + + break; + case SMSG_PLAYER_UPDATE_1: case SMSG_PLAYER_UPDATE_2: case SMSG_PLAYER_MOVE: |