summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-24 16:47:10 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-24 16:47:10 +0000
commitded09d81feaaed814630e58551b4a384d32945f8 (patch)
tree7fdaefc6b298c667269d372924ef6d160e604408 /src/map/unit.c
parenta801f1498cb41ed16ca6298ef8a1eb145daccaad (diff)
downloadhercules-ded09d81feaaed814630e58551b4a384d32945f8.tar.gz
hercules-ded09d81feaaed814630e58551b4a384d32945f8.tar.bz2
hercules-ded09d81feaaed814630e58551b4a384d32945f8.tar.xz
hercules-ded09d81feaaed814630e58551b4a384d32945f8.zip
- Merged item_db.sql from stable :B
- Added a missing line (how did it get lost?) in mob_spawn to set aggressive state for angry mobs. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6731 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 01814b296..cf7d88aea 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -392,7 +392,7 @@ int unit_movepos(struct block_list *bl,int dst_x,int dst_y, int easy, int checkp
unit_stop_walking(bl,1);
unit_stop_attack(bl);
- if(checkpath && (map_getcell(bl->m,bl->x,bl->y, CELL_CHKNOPASS) || path_search_real(&wpd,bl->m,bl->x,bl->y,dst_x,dst_y,easy, CELL_CHKNOREACH)))
+ if(checkpath && (map_getcell(bl->m,dst_x,dst_y, CELL_CHKNOPASS) || path_search_real(&wpd,bl->m,bl->x,bl->y,dst_x,dst_y,easy, CELL_CHKNOREACH)))
return 0;
dir = map_calc_dir(bl, dst_x,dst_y);