diff options
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); |