diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-08 17:49:26 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-08 17:49:26 +0000 |
commit | 2c9c73b3121b9bba577c053ebbf8783e69b73f59 (patch) | |
tree | 64e30bc6ac99fb588260efb0f13706bcd6380db1 /src/map/unit.c | |
parent | 01a1daae3343e0c993de83e7c38fab6a7f5bf5d4 (diff) | |
download | hercules-2c9c73b3121b9bba577c053ebbf8783e69b73f59.tar.gz hercules-2c9c73b3121b9bba577c053ebbf8783e69b73f59.tar.bz2 hercules-2c9c73b3121b9bba577c053ebbf8783e69b73f59.tar.xz hercules-2c9c73b3121b9bba577c053ebbf8783e69b73f59.zip |
- Fixed mobinfo displaying exp as signed ints rather than unsigned.
- Added status_check_visibility to check if an object is within range of view of another. Nothing more, nothing less. It's used by unit movement to check whether you can continue chasing your target or not when the "chase target" directive is given.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7582 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 0b7bb663d..5586db0b2 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -226,7 +226,7 @@ static int unit_walktoxy_timer(int tid,unsigned int tick,int id,int data) } else if (ud->target) { //Update target trajectory. struct block_list *tbl = map_id2bl(ud->target); - if (!tbl) { //Cancel chase. + if (!tbl || !status_check_visibility(bl, tbl)) { //Cancel chase. ud->to_x = bl->x; ud->to_y = bl->y; return 0; |