From d156ff6d7f792e3d440d0cc809f5b488c8a23c98 Mon Sep 17 00:00:00 2001 From: MadCamel Date: Tue, 27 Jul 2010 20:11:12 -0400 Subject: Temporarily removed ChangeDir flood checks until mana1.0 is official .29.1 has a bug that spams ChangeDir packets like crazy and my checks had some problems with this, causing players to be disconnected while navigating through areas with large amounts of blocked tiles. Hopefully someone remembers to re-enable this code when 1.0 is the officially supported version. --- src/map/clif.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index c27bddf..98dbc56 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9758,6 +9758,8 @@ int clif_check_packet_flood(fd, cmd) rate = 1000; } +// Restore this code when mana1.0 is released +#if 0 // ChangeDir - only apply limit if not walking if (cmd == 0x9b) { @@ -9767,6 +9769,7 @@ int clif_check_packet_flood(fd, cmd) rate = 500; } +#endif // They are flooding if (tick < sd->flood_rates[cmd] + rate) -- cgit v1.2.3-60-g2f50