From cb8e7fecea483281556158a966f95997b5e73c38 Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 28 Aug 2008 03:55:21 +0000 Subject: Fixed @cash/@points not handling negative values properly (bugreport:2132) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13145 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 217587f7e..f734b76da 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -7960,14 +7960,14 @@ int atcommand_cash(const int fd, struct map_session_data* sd, const char* comman if( value > 0 ) pc_getcash(sd, value, 0); else - pc_paycash(sd, value, 0); + pc_paycash(sd, -value, 0); } else { // @points if( value > 0 ) pc_getcash(sd, 0, value); else - pc_paycash(sd, value, value); + pc_paycash(sd, -value, -value); } return 0; -- cgit v1.2.3-70-g09d2