summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@gmail.com>2013-11-02 22:40:04 +0100
committerErik Schilling <ablu.erikschilling@gmail.com>2013-11-02 22:40:04 +0100
commit9ea0bb101506d6aa39b232f861b1e55d204e902d (patch)
tree47e21221d38da24b3ed21b56adb66a9617d199b1
parentc4ba9369b0c7ca48dbdf80d130403747cb7bd78c (diff)
downloadmanaserv-9ea0bb101506d6aa39b232f861b1e55d204e902d.tar.gz
manaserv-9ea0bb101506d6aa39b232f861b1e55d204e902d.tar.bz2
manaserv-9ea0bb101506d6aa39b232f861b1e55d204e902d.tar.xz
manaserv-9ea0bb101506d6aa39b232f861b1e55d204e902d.zip
Do not send dir changes back to the player itself
-rw-r--r--src/game-server/state.cpp2
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);