summaryrefslogtreecommitdiff
path: root/src/map/storage.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/storage.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/storage.c')
-rw-r--r--src/map/storage.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/storage.c b/src/map/storage.c
index 4eb1beb32..c11ef0993 100644
--- a/src/map/storage.c
+++ b/src/map/storage.c
@@ -154,7 +154,7 @@ static int storage_additem(struct map_session_data* sd, struct item* item_data,
return 1;
stor->items[i].amount += amount;
clif_storageitemadded(sd,&stor->items[i],i,amount);
- if(log_config.enable_logs&0x800)
+ if(log_config.enable_logs & LOG_STORAGE_ITEMS)
log_pick_pc(sd, "R", item_data->nameid, -amount, item_data);
return 0;
}
@@ -172,7 +172,7 @@ static int storage_additem(struct map_session_data* sd, struct item* item_data,
stor->items[i].amount = amount;
clif_storageitemadded(sd,&stor->items[i],i,amount);
clif_updatestorageamount(sd,stor->storage_amount);
- if(log_config.enable_logs&0x800)
+ if(log_config.enable_logs & LOG_STORAGE_ITEMS)
log_pick_pc(sd, "R", item_data->nameid, -amount, item_data);
return 0;
@@ -188,7 +188,7 @@ int storage_delitem(struct map_session_data* sd, int n, int amount)
sd->status.storage.items[n].amount -= amount;
- if(log_config.enable_logs&0x800)
+ if(log_config.enable_logs & LOG_STORAGE_ITEMS)
log_pick_pc(sd, "R", sd->status.storage.items[n].nameid, amount, &sd->status.storage.items[n]);
if( sd->status.storage.items[n].amount == 0 )
@@ -413,7 +413,7 @@ int guild_storage_additem(struct map_session_data* sd, struct guild_storage* sto
stor->items[i].amount+=amount;
clif_storageitemadded(sd,&stor->items[i],i,amount);
stor->dirty = 1;
- if(log_config.enable_logs&0x1000)
+ if(log_config.enable_logs & LOG_GSTORAGE_ITEMS)
log_pick_pc(sd, "G", item_data->nameid, -amount, item_data);
return 0;
}
@@ -431,7 +431,7 @@ int guild_storage_additem(struct map_session_data* sd, struct guild_storage* sto
clif_storageitemadded(sd,&stor->items[i],i,amount);
clif_updateguildstorageamount(sd,stor->storage_amount);
stor->dirty = 1;
- if(log_config.enable_logs&0x1000)
+ if(log_config.enable_logs & LOG_GSTORAGE_ITEMS)
log_pick_pc(sd, "G", item_data->nameid, -amount, item_data);
return 0;
}
@@ -445,7 +445,7 @@ int guild_storage_delitem(struct map_session_data* sd, struct guild_storage* sto
return 1;
stor->items[n].amount-=amount;
- if(log_config.enable_logs&0x1000)
+ if(log_config.enable_logs & LOG_GSTORAGE_ITEMS)
log_pick_pc(sd, "G", stor->items[n].nameid, amount, &stor->items[n]);
if(stor->items[n].amount==0){
memset(&stor->items[n],0,sizeof(stor->items[0]));