summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-17 06:25:11 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-17 06:25:11 +0000
commit9689016f331acd7d5409f1d95cc207ac044b035b (patch)
tree09450feaf6fba65b5ba45222970c78eb7dc9097b /src/map/atcommand.c
parent8e5eff5022d6a0598787432368abe4ea8e0364d1 (diff)
downloadhercules-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/atcommand.c')
-rw-r--r--src/map/atcommand.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 66be96cc4..2b2f44278 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1725,7 +1725,7 @@ ACMD_FUNC(item)
}
//Logs (A)dmins items [Lupus]
- if(log_config.enable_logs&0x400)
+ if(log_config.enable_logs & LOG_COMMAND_ITEMS)
log_pick_pc(sd, "A", item_id, number, NULL);
clif_displaymessage(fd, msg_txt(18)); // Item created.
@@ -1800,7 +1800,7 @@ ACMD_FUNC(item2)
}
//Logs (A)dmins items [Lupus]
- if(log_config.enable_logs&0x400)
+ if(log_config.enable_logs & LOG_COMMAND_ITEMS)
log_pick_pc(sd, "A", item_tmp.nameid, number, &item_tmp);
clif_displaymessage(fd, msg_txt(18)); // Item created.
@@ -1824,7 +1824,7 @@ ACMD_FUNC(itemreset)
if (sd->status.inventory[i].amount && sd->status.inventory[i].equip == 0) {
//Logs (A)dmins items [Lupus]
- if(log_config.enable_logs&0x400)
+ if(log_config.enable_logs & LOG_COMMAND_ITEMS)
log_pick_pc(sd, "A", sd->status.inventory[i].nameid, -sd->status.inventory[i].amount, &sd->status.inventory[i]);
pc_delitem(sd, i, sd->status.inventory[i].amount, 0, 0);
@@ -2859,7 +2859,7 @@ ACMD_FUNC(produce)
clif_misceffect(&sd->bl, 3);
//Logs (A)dmins items [Lupus]
- if(log_config.enable_logs&0x400)
+ if(log_config.enable_logs & LOG_COMMAND_ITEMS)
log_pick_pc(sd, "A", tmp_item.nameid, 1, &tmp_item);
if ((flag = pc_additem(sd, &tmp_item, 1)))
@@ -5941,7 +5941,7 @@ void getring (struct map_session_data* sd)
item_tmp.card[3] = sd->status.partner_id >> 16;
//Logs (A)dmins items [Lupus]
- if(log_config.enable_logs&0x400)
+ if(log_config.enable_logs & LOG_COMMAND_ITEMS)
log_pick_pc(sd, "A", item_id, 1, &item_tmp);
if((flag = pc_additem(sd,&item_tmp,1))) {
@@ -8721,7 +8721,7 @@ ACMD_FUNC(delitem)
}
//Logs (A)dmins items [Lupus]
- if( log_config.enable_logs&0x400 )
+ if( log_config.enable_logs & LOG_COMMAND_ITEMS )
{
log_pick_pc(sd, "A", nameid, -delamount, &sd->status.inventory[idx]);
}