summaryrefslogtreecommitdiff
path: root/src/map/mail.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/mail.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/mail.c')
-rw-r--r--src/map/mail.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mail.c b/src/map/mail.c
index 59afa0421..873788433 100644
--- a/src/map/mail.c
+++ b/src/map/mail.c
@@ -35,7 +35,7 @@ int mail_removeitem(struct map_session_data *sd, short flag)
{
if (flag)
{ // Item send
- if(log_config.enable_logs&0x2000)
+ if(log_config.enable_logs & LOG_MAILS)
log_pick_pc(sd, "E", sd->mail.nameid, -sd->mail.amount, &sd->status.inventory[sd->mail.index]);
pc_delitem(sd, sd->mail.index, sd->mail.amount, 1, 0);
@@ -144,7 +144,7 @@ void mail_getattachment(struct map_session_data* sd, int zeny, struct item* item
{
pc_additem(sd, item, item->amount);
- if(log_config.enable_logs&0x2000)
+ if(log_config.enable_logs & LOG_MAILS)
log_pick_pc(sd, "E", item->nameid, item->amount, item);
clif_Mail_getattachment(sd->fd, 0);
@@ -178,7 +178,7 @@ void mail_deliveryfail(struct map_session_data *sd, struct mail_message *msg)
if( msg->item.amount > 0 )
{
// Item recieve (due to failure)
- if(log_config.enable_logs&0x2000)
+ if(log_config.enable_logs & LOG_MAILS)
log_pick_pc(sd, "E", msg->item.nameid, msg->item.amount, &msg->item);
pc_additem(sd, &msg->item, msg->item.amount);