diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-11 16:57:37 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-11 16:57:37 +0000 |
commit | f30f40066e831e4cc0c4326f96d9358554c51791 (patch) | |
tree | 366378e55f3e321b75f8e6c483a027896eb67059 | |
parent | f86486582880042ecbed0e0c6977e98e9dd3002c (diff) | |
download | hercules-f30f40066e831e4cc0c4326f96d9358554c51791.tar.gz hercules-f30f40066e831e4cc0c4326f96d9358554c51791.tar.bz2 hercules-f30f40066e831e4cc0c4326f96d9358554c51791.tar.xz hercules-f30f40066e831e4cc0c4326f96d9358554c51791.zip |
- 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.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5988 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/battle.c | 2 |
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•¨”»’è
|