diff options
author | David Athay <ko2fan@gmail.com> | 2008-10-15 15:45:14 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-10-15 15:45:14 +0000 |
commit | 438be47fa7078cd235bda7d2461024ddc222c026 (patch) | |
tree | 45afebcc356b7e77a8999ef1bda638c638522fae /src/net/beinghandler.cpp | |
parent | 61a5caef2951f7e0e3a660514eb5d778d787df8f (diff) | |
download | mana-438be47fa7078cd235bda7d2461024ddc222c026.tar.gz mana-438be47fa7078cd235bda7d2461024ddc222c026.tar.bz2 mana-438be47fa7078cd235bda7d2461024ddc222c026.tar.xz mana-438be47fa7078cd235bda7d2461024ddc222c026.zip |
src/localplayer.cpp
src/net/beinghandler.cpp
src/net/protocol.h
src/net/gameserver/player.h
src/net/gameserver/player.cpp
src/net/beinghandler.h
ChangeLog
tmw.cbp
Diffstat (limited to 'src/net/beinghandler.cpp')
-rw-r--r-- | src/net/beinghandler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp index 7e37aa27..fc3c7d1e 100644 --- a/src/net/beinghandler.cpp +++ b/src/net/beinghandler.cpp @@ -55,6 +55,7 @@ BeingHandler::BeingHandler() GPMSG_BEINGS_DAMAGE, GPMSG_BEING_ACTION_CHANGE, GPMSG_BEING_LOOKS_CHANGE, + GPMSG_BEING_DIR_CHANGE, 0 }; handledMessages = _messages; @@ -85,6 +86,9 @@ void BeingHandler::handleMessage(MessageIn &msg) case GPMSG_BEING_LOOKS_CHANGE: handleBeingLooksChangeMessage(msg); break; + case GPMSG_BEING_DIR_CHANGE: + handleBeingDirChangeMessage(msg); + break; } } @@ -319,3 +323,9 @@ void BeingHandler::handleBeingLooksChangeMessage(MessageIn &msg) handleLooks(static_cast< Player * >(being), msg); } +void BeingHandler::handleBeingDirChangeMessage(MessageIn &msg) +{ + Being *being = beingManager->findBeing(msg.readInt16()); + if (!being) return; + being->setDirection(msg.readInt8()); +} |