diff options
author | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-17 06:25:11 +0000 |
---|---|---|
committer | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-17 06:25:11 +0000 |
commit | 9689016f331acd7d5409f1d95cc207ac044b035b (patch) | |
tree | 09450feaf6fba65b5ba45222970c78eb7dc9097b /src/map/mob.c | |
parent | 8e5eff5022d6a0598787432368abe4ea8e0364d1 (diff) | |
download | hercules-9689016f331acd7d5409f1d95cc207ac044b035b.tar.gz hercules-9689016f331acd7d5409f1d95cc207ac044b035b.tar.bz2 hercules-9689016f331acd7d5409f1d95cc207ac044b035b.tar.xz hercules-9689016f331acd7d5409f1d95cc207ac044b035b.zip |
- Replaced log_config.enable_logs constants with LOG_ enums that existed since r9599.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15150 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index ac8b1bd89..45a400c5b 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1470,7 +1470,7 @@ static bool mob_ai_sub_hard(struct mob_data *md, unsigned int tick) return true; //Busy attacking? fitem = (struct flooritem_data *)tbl; - if(log_config.enable_logs&0x10) //Logs items, taken by (L)ooter Mobs [Lupus] + if(log_config.enable_logs & LOG_MONSTER_ITEMS) //Logs items, taken by (L)ooter Mobs [Lupus] log_pick_mob(md, "L", fitem->item_data.nameid, fitem->item_data.amount, &fitem->item_data); if (md->lootitem_count < LOOTITEM_SIZE) { @@ -1711,7 +1711,7 @@ static void mob_item_drop(struct mob_data *md, struct item_drop_list *dlist, str { TBL_PC* sd; - if(log_config.enable_logs&0x10) + if(log_config.enable_logs & LOG_MONSTER_ITEMS) { //Logs items, dropped by mobs [Lupus] if (loot) log_pick_mob(md, "L", ditem->item_data.nameid, -ditem->item_data.amount, &ditem->item_data); @@ -2389,7 +2389,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) map_addflooritem(&item,1,mvp_sd->bl.m,mvp_sd->bl.x,mvp_sd->bl.y,mvp_sd->status.char_id,(second_sd?second_sd->status.char_id:0),(third_sd?third_sd->status.char_id:0),1); } - if(log_config.enable_logs&0x200) {//Logs items, MVP prizes [Lupus] + if(log_config.enable_logs & LOG_MVP_PRIZE) {//Logs items, MVP prizes [Lupus] log_pick_mob(md, "M", item.nameid, -1, NULL); if (!temp) log_pick_pc(mvp_sd, "P", item.nameid, 1, NULL); |