summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-08 18:00:39 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-08 18:02:00 -0300
commita417c12ee435301498f2d4b162c7f849cefc302a (patch)
treeb75a7d8dc64333a60f4a1225e4e480317257ef82 /src/map/battle.c
parent373b7ffae57f3649cc7f5ecaae1c499833ddb816 (diff)
downloadhercules-unsquashed.tar.gz
hercules-unsquashed.tar.bz2
hercules-unsquashed.tar.xz
hercules-unsquashed.zip
[TMW2] Disable Official Walkpath and Partly reverts b5a92f944f126e920442307bebd3c2b53c9b0d54.unsquashed
Official Walkpath only do something if path length > 14, which M+ does not. So in the end of the day it is running some extra calculations we don't need. I don't see anything else server-side which could be safely disabled. And I also don't know how effective this will be. Hopefully, though, this will reduce a bit the perceived lag. ...At least, there were positive comments on Moubootaur Legends.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 72c3d8963..4f4d43bc3 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -7010,12 +7010,14 @@ static bool battle_check_range(struct block_list *src, struct block_list *bl, in
if( src->m != bl->m )
return false;
+/* [TMW2] Code removed - ManaPlus deals with squares, not circles.
#ifndef CIRCULAR_AREA
if( src->type == BL_PC ) { // Range for players' attacks and skills should always have a circular check. [Angezerus]
if ( !check_distance_client_bl(src, bl, range) )
return false;
} else
#endif
+*/
if( !check_distance_bl(src, bl, range) )
return false;