diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-25 13:05:59 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-25 13:05:59 +0000 |
commit | 576f9ab276404d5a77e44e0983846270d0c4422a (patch) | |
tree | 280e08725ba54de6460d8eccda9d2f6043e06217 /src/map/map.c | |
parent | c966d1aaddd3f0fe455f6ba2bd829f26b75382eb (diff) | |
download | hercules-576f9ab276404d5a77e44e0983846270d0c4422a.tar.gz hercules-576f9ab276404d5a77e44e0983846270d0c4422a.tar.bz2 hercules-576f9ab276404d5a77e44e0983846270d0c4422a.tar.xz hercules-576f9ab276404d5a77e44e0983846270d0c4422a.zip |
Now we can use 'boss_monster' to summon whatever monsters that need to be radared by Convex Mirror. (bugreport:2653)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13813 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map/map.c b/src/map/map.c index 7cad8961b..acf203615 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -476,7 +476,7 @@ int map_count_oncell(int m, int x, int y, int type) return count; } /* - * E̸ĪE˫ëȪ + * E̸ĪE˫ëȪ? */ struct skill_unit* map_find_skill_unit_oncell(struct block_list* target,int x,int y,int skill_id,struct skill_unit* out_unit) { @@ -710,7 +710,7 @@ int map_foreachinarea(int (*func)(struct block_list*,va_list), int m, int x0, in } /*========================================== - * `(x0,y0)-(x1,y1)(dx,dy)ړb + * `(x0,y0)-(x1,y1)(dx,dy)ړb? * ̈OɂȂ̈(`L`)?obj * ?funcĂ * @@ -1165,7 +1165,7 @@ int map_get_new_object_id(void) /*========================================== * ACe * - * data==0̎btimerŏ * data!=0̎b͏EŏbƂē + * data==0̎btimerŏ * data!=0̎b͏EŏbƂē? * * ҂́Amap_clearflooritem(id) * map.h?#defineĂ @@ -1462,7 +1462,7 @@ void map_addiddb(struct block_list *bl) TBL_MOB* md = (TBL_MOB*)bl; idb_put(mobid_db,bl->id,bl); - if( (md->db->status.mode&MD_BOSS) && md->db->mexp > 0 ) + if( md->boss ) idb_put(bossid_db, bl->id, bl); } @@ -1700,11 +1700,11 @@ struct mob_data * map_getmob_boss(int m) iter = db_iterator(bossid_db); for( md = (struct mob_data*)dbi_first(iter); dbi_exists(iter); md = (struct mob_data*)dbi_next(iter) ) { - if( md->bl.m != m || !md->spawn ) - continue; - - found = true; - break; + if( md->bl.m == m ) + { + found = true; + break; + } } dbi_destroy(iter); |