diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-10 21:38:05 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-10 21:38:05 +0000 |
commit | 7961554a72e475cd71bd34f65bb548c1b13dc685 (patch) | |
tree | 58bcfac64070e2d01fd499ba9bfb4a423ebeac99 /src/map/map.c | |
parent | 20fadf45adddb27cf7e4db736614b67f7f8561f6 (diff) | |
download | hercules-7961554a72e475cd71bd34f65bb548c1b13dc685.tar.gz hercules-7961554a72e475cd71bd34f65bb548c1b13dc685.tar.bz2 hercules-7961554a72e475cd71bd34f65bb548c1b13dc685.tar.xz hercules-7961554a72e475cd71bd34f65bb548c1b13dc685.zip |
- Modified the unit_data structure to handle automatically switching between chasing and attacking a character. Note that it's a work in progress and not yet properly tested/finished...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5979 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index 156ae7b1c..55b7996a4 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1412,7 +1412,7 @@ int map_search_freecell(struct block_list *src, int m, int *x,int *y, int rx, in if (map_getcell(m,*x,*y,CELL_CHKREACH)) { - if(flag&2 && !unit_can_reach(src, *x, *y)) + if(flag&2 && !unit_can_reach_pos(src, *x, *y, 1)) continue; if(flag&4 && spawn++ < battle_config.no_spawn_on_player && map_foreachinarea(map_count_sub, m, |