diff options
author | MadCamel <madcamel@gmail.com> | 2010-07-27 20:11:12 -0400 |
---|---|---|
committer | MadCamel <madcamel@gmail.com> | 2010-07-27 20:11:12 -0400 |
commit | d156ff6d7f792e3d440d0cc809f5b488c8a23c98 (patch) | |
tree | c2df62f4df08a10e16a47168f492e50b212a17d1 /src | |
parent | 1292f043398ec4aeae06da4d3652c94ac7708277 (diff) | |
download | tmwa-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')
-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 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) |