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 /src/map | |
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
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 1 insertions, 1 deletions
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•¨”»’è
|