summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2010-05-01 11:30:48 -0400
committerMadCamel <madcamel@gmail.com>2010-05-01 11:30:48 -0400
commitf167bb005986ac15376733b76b575235127471c1 (patch)
tree714fc3f7953e1354c8e9e61e79d9f7f6cdb5d542 /src/map/clif.c
parent4e1efcdd5e9be9de4647e0ff6a605df0908e16bb (diff)
downloadtmwa-f167bb005986ac15376733b76b575235127471c1.tar.gz
tmwa-f167bb005986ac15376733b76b575235127471c1.tar.bz2
tmwa-f167bb005986ac15376733b76b575235127471c1.tar.xz
tmwa-f167bb005986ac15376733b76b575235127471c1.zip
Do not relay duplicate direction change packets
Pre-mana clients spam this packet while walking into blocked tiles
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 2f922eb..da26b5d 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7229,6 +7229,9 @@ void clif_parse_ChangeDir (int fd, struct map_session_data *sd)
// RFIFOW(fd,2); // Apparently does nothing?
dir = RFIFOB (fd, 4);
+ if (dir == sd->dir)
+ return;
+
pc_setdir (sd, dir);
WBUFW (buf, 0) = 0x9c;