diff options
author | eathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-24 14:13:39 +0000 |
---|---|---|
committer | eathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-24 14:13:39 +0000 |
commit | 373cfe9bee3f297540d09cb0616e2b5da17463f3 (patch) | |
tree | 7c525ce072d2ac917fe63ff0ad5805d28acbfd3c /src/map/buyingstore.c | |
parent | 4b787eb878c4410512ceffb9f92b6f3cd7975bce (diff) | |
download | hercules-373cfe9bee3f297540d09cb0616e2b5da17463f3.tar.gz hercules-373cfe9bee3f297540d09cb0616e2b5da17463f3.tar.bz2 hercules-373cfe9bee3f297540d09cb0616e2b5da17463f3.tar.xz hercules-373cfe9bee3f297540d09cb0616e2b5da17463f3.zip |
* Merged changes up to eAthena 15040.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15245 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/buyingstore.c')
-rw-r--r-- | src/map/buyingstore.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/map/buyingstore.c b/src/map/buyingstore.c index 6d8ed9acb..eddfa0127 100644 --- a/src/map/buyingstore.c +++ b/src/map/buyingstore.c @@ -367,13 +367,9 @@ void buyingstore_trade(struct map_session_data* sd, int account_id, unsigned int zeny = amount*pl_sd->buyingstore.items[listidx].price; // log - if( log_config.enable_logs & LOG_BUYING_STORE ) - { - log_pick_pc(sd, "B", nameid, -((int)amount), &sd->status.inventory[index]); - log_pick_pc(pl_sd, "B", nameid, amount, &sd->status.inventory[index]); - } - if( log_config.zeny ) - log_zeny(sd, "B", pl_sd, zeny); + log_pick_pc(sd, LOG_TYPE_BUYING_STORE, nameid, -((int)amount), &sd->status.inventory[index]); + log_pick_pc(pl_sd, LOG_TYPE_BUYING_STORE, nameid, amount, &sd->status.inventory[index]); + log_zeny(sd, LOG_TYPE_BUYING_STORE, pl_sd, zeny); // move item pc_additem(pl_sd, &sd->status.inventory[index], amount); |