diff options
author | MadCamel <madcamel@gmail.com> | 2010-05-01 11:30:48 -0400 |
---|---|---|
committer | MadCamel <madcamel@gmail.com> | 2010-05-01 11:30:48 -0400 |
commit | f167bb005986ac15376733b76b575235127471c1 (patch) | |
tree | 714fc3f7953e1354c8e9e61e79d9f7f6cdb5d542 | |
parent | 4e1efcdd5e9be9de4647e0ff6a605df0908e16bb (diff) | |
download | tmwa-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
-rw-r--r-- | src/map/clif.c | 3 |
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; |