From 0a98391b9dba8f27a0c285fcdafc564d93a37e23 Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 19 Oct 2006 21:25:56 +0000 Subject: - Cleaned up the log.c file. - Splitted log_pick into log_pick_pc and log_pick_mob to avoid ugly type-casting. - Fixed log_chat not recording anything if the server is compiled in SQL mode and sql_logs is turned off (it should then record to a plain txt file) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9017 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/trade.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map/trade.c') diff --git a/src/map/trade.c b/src/map/trade.c index 442566e49..78c630a32 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -478,8 +478,8 @@ void trade_tradecommit(struct map_session_data *sd) { if (flag == 0) { //Logs (T)rade [Lupus] if(log_config.enable_logs&0x2) { - log_pick(sd, "T", 0, sd->status.inventory[n].nameid, -(sd->deal.item[trade_i].amount), &sd->status.inventory[n]); - log_pick(tsd, "T", 0, sd->status.inventory[n].nameid, sd->deal.item[trade_i].amount, &sd->status.inventory[n]); + log_pick_pc(sd, "T", sd->status.inventory[n].nameid, -(sd->deal.item[trade_i].amount), &sd->status.inventory[n]); + log_pick_pc(tsd, "T", sd->status.inventory[n].nameid, sd->deal.item[trade_i].amount, &sd->status.inventory[n]); } //Logs pc_delitem(sd, n, sd->deal.item[trade_i].amount, 1); @@ -495,8 +495,8 @@ void trade_tradecommit(struct map_session_data *sd) { if (flag == 0) { //Logs (T)rade [Lupus] if(log_config.enable_logs&0x2) { - log_pick(tsd, "T", 0, tsd->status.inventory[n].nameid, -(tsd->deal.item[trade_i].amount), &tsd->status.inventory[n]); - log_pick(sd, "T", 0, tsd->status.inventory[n].nameid, tsd->deal.item[trade_i].amount, &tsd->status.inventory[n]); + log_pick_pc(tsd, "T", tsd->status.inventory[n].nameid, -(tsd->deal.item[trade_i].amount), &tsd->status.inventory[n]); + log_pick_pc(sd, "T", tsd->status.inventory[n].nameid, tsd->deal.item[trade_i].amount, &tsd->status.inventory[n]); } //Logs pc_delitem(tsd, n, tsd->deal.item[trade_i].amount, 1); -- cgit v1.2.3-60-g2f50