summaryrefslogtreecommitdiff
path: root/src/map/storage.c
diff options
context:
space:
mode:
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]));