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/npc.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/npc.c')
-rw-r--r-- | src/map/npc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 17a8e19be..0d4e886ba 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1268,7 +1268,7 @@ int npc_cashshop_buylist(struct map_session_data *sd, int points, int count, uns pc_additem(sd,&item_tmp,amount); } - if( log_config.enable_logs&0x20 ) + if( log_config.enable_logs & LOG_NPC_TRANSACTIONS ) log_pick_pc(sd, "S", nameid, amount, NULL); } @@ -1376,7 +1376,7 @@ int npc_cashshop_buy(struct map_session_data *sd, int nameid, int amount, int po pc_additem(sd,&item_tmp, amount); } - if(log_config.enable_logs&0x20) + if(log_config.enable_logs & LOG_NPC_TRANSACTIONS) log_pick_pc(sd, "S", nameid, amount, NULL); return 0; @@ -1486,7 +1486,7 @@ int npc_buylist(struct map_session_data* sd, int n, unsigned short* item_list) pc_additem(sd,&item_tmp,amount); //Logs items, Bought in NPC (S)hop [Lupus] - if( log_config.enable_logs&0x20 ) + if( log_config.enable_logs & LOG_NPC_TRANSACTIONS ) log_pick_pc(sd, "S", item_tmp.nameid, amount, NULL); //Logs } @@ -1630,7 +1630,7 @@ int npc_selllist(struct map_session_data* sd, int n, unsigned short* item_list) nameid = sd->status.inventory[idx].nameid; //Logs items, Sold to NPC (S)hop [Lupus] - if( log_config.enable_logs&0x20 ) + if( log_config.enable_logs & LOG_NPC_TRANSACTIONS ) log_pick_pc(sd, "S", nameid, -amount, &sd->status.inventory[idx]); //Logs |