From 97af12ef15eb26b1891aca39951e115db1e24f1b Mon Sep 17 00:00:00 2001 From: zephyrus Date: Mon, 10 Mar 2008 02:44:07 +0000 Subject: - Fixed a bug allow GM with notrade to send zeny. - Added a fix into auction system allow to direct buy or increase your own bid if you reach the 5 bids limit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12335 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mail.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/map/mail.c') diff --git a/src/map/mail.c b/src/map/mail.c index 1b9ebb11a..d6fc875a3 100644 --- a/src/map/mail.c +++ b/src/map/mail.c @@ -73,11 +73,14 @@ unsigned char mail_setitem(struct map_session_data *sd, int idx, int amount) { if (idx == 0) { // Zeny Transfer - if (amount < 0) + if( amount < 0 ) return 0; - if (amount > sd->status.zeny) + if( amount > sd->status.zeny ) amount = sd->status.zeny; + if( !pc_can_give_items(pc_isGM(sd)) ) + amount = 0; + sd->mail.zeny = amount; clif_updatestatus(sd, SP_ZENY); return 0; -- cgit v1.2.3-70-g09d2