From dc88ae10c96b5d5d9d40fccbb102f1ec80058063 Mon Sep 17 00:00:00 2001 From: glighta Date: Tue, 13 Nov 2012 01:03:28 +0000 Subject: Following r16914 -Upd pre-re db (insignia, homon-s, bloodylust, chaospanic) -fix @zeny for negative amout bugreport:6886 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16923 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 5be76d36a..27329ae4a 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2533,7 +2533,10 @@ ACMD_FUNC(zeny) clif_displaymessage(fd, msg_txt(1012)); // Please enter an amount (usage: @zeny ). return -1; } - pc_getzeny(sd,zeny,LOG_TYPE_COMMAND,NULL); + if(zeny > 0) + pc_getzeny(sd,zeny,LOG_TYPE_COMMAND,NULL); + else + pc_payzeny(sd,zeny,LOG_TYPE_COMMAND,NULL); return 0; } -- cgit v1.2.3-70-g09d2