diff options
author | Erik Schilling <ablu.erikschilling@gmail.com> | 2013-11-02 22:40:04 +0100 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@gmail.com> | 2013-11-02 22:40:04 +0100 |
commit | 9ea0bb101506d6aa39b232f861b1e55d204e902d (patch) | |
tree | 47e21221d38da24b3ed21b56adb66a9617d199b1 /src | |
parent | c4ba9369b0c7ca48dbdf80d130403747cb7bd78c (diff) | |
download | manaserv-9ea0bb101506d6aa39b232f861b1e55d204e902d.tar.gz manaserv-9ea0bb101506d6aa39b232f861b1e55d204e902d.tar.bz2 manaserv-9ea0bb101506d6aa39b232f861b1e55d204e902d.tar.xz manaserv-9ea0bb101506d6aa39b232f861b1e55d204e902d.zip |
Do not send dir changes back to the player itself
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp index e997ad59..b4261e55 100644 --- a/src/game-server/state.cpp +++ b/src/game-server/state.cpp @@ -196,7 +196,7 @@ static void informPlayer(MapComposite *map, Entity *p) } // Send direction change messages. - if (oflags & UPDATEFLAG_DIRCHANGE) + if (oflags & UPDATEFLAG_DIRCHANGE && o != p) { MessageOut dirMsg(GPMSG_BEING_DIR_CHANGE); dirMsg.writeInt16(oid); |