summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/battle.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index d20071a0e..13296f684 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/04/11
+ * Modified battle_check_range to do a path-check on distances less than 2
+ (rather than 3) to avoid being able to hit through walls. [Skotlex]
* Modified unit_walktoxy_sub to always move at least one cell when a large
chaserange is specified to prevent possible infinite loops where
attack_timer says you are not within range, but unit_walktoxy says you are.
diff --git a/src/map/battle.c b/src/map/battle.c
index 0a3d528c2..fdbcffa07 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3524,7 +3524,7 @@ int battle_check_range(struct block_list *src,struct block_list *bl,int range)
if (!check_distance_bl(src, bl, range))
return 0;
- if(distance_bl(src, bl) < 3) //No need for path checking.
+ if(distance_bl(src, bl) < 2) //No need for path checking.
return 1;
// ?áŠQ•¨”»’è