summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorMadCamel <madcamel@gmail.com>2010-07-27 20:11:12 -0400
committerMadCamel <madcamel@gmail.com>2010-07-27 20:11:12 -0400
commitd156ff6d7f792e3d440d0cc809f5b488c8a23c98 (patch)
treec2df62f4df08a10e16a47168f492e50b212a17d1 /src/map/clif.c
parent1292f043398ec4aeae06da4d3652c94ac7708277 (diff)
downloadtmwa-d156ff6d7f792e3d440d0cc809f5b488c8a23c98.tar.gz
tmwa-d156ff6d7f792e3d440d0cc809f5b488c8a23c98.tar.bz2
tmwa-d156ff6d7f792e3d440d0cc809f5b488c8a23c98.tar.xz
tmwa-d156ff6d7f792e3d440d0cc809f5b488c8a23c98.zip
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.
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 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)