summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-28 03:28:13 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-28 03:28:13 +0000
commitc7062660486e8636edf6e4079185e774606dcaf1 (patch)
tree58491db231782331ae2014ec09dbfe5fd76f3370 /src/map/npc.c
parent671af9a4b431e291b086f8b4381f1f27f2bc2516 (diff)
downloadhercules-c7062660486e8636edf6e4079185e774606dcaf1.tar.gz
hercules-c7062660486e8636edf6e4079185e774606dcaf1.tar.bz2
hercules-c7062660486e8636edf6e4079185e774606dcaf1.tar.xz
hercules-c7062660486e8636edf6e4079185e774606dcaf1.zip
- The picklog will now record negative values for items sold to npcs.
- Added inmediate position and hp-bar update when a character joins a party. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7934 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 6f5649654..696775cc2 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1302,7 +1302,7 @@ int npc_selllist(struct map_session_data *sd,int n,unsigned short *item_list)
}
if(log_config.pick) //Logs items, Sold to NPC (S)hop [Lupus]
- log_pick(sd, "S", 0, nameid, qty, &sd->status.inventory[idx]);
+ log_pick(sd, "S", 0, nameid, -qty, &sd->status.inventory[idx]);
if(nd) {
pc_setreg(sd,add_str("@sold_nameid")+(i<<24),(int)sd->status.inventory[idx].nameid);