From d7f4a7a1b43ec0fc20c05936d08a91962b9b774d Mon Sep 17 00:00:00 2001 From: Paradox924X Date: Mon, 8 Nov 2010 23:28:11 +0000 Subject: Notify players involved in a trade that it has been canceled when one player changes maps/logs out or otherwise becomes unable to participate in the trade. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14452 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/trade.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/trade.c b/src/map/trade.c index 392acb33f..32c84b508 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -455,8 +455,12 @@ void trade_tradecancel(struct map_session_data *sd) if(!sd->state.trading) { // Not trade acepted - if( target_sd ) target_sd->trade_partner = 0; + if( target_sd ) { + target_sd->trade_partner = 0; + clif_tradecancelled(target_sd); + } sd->trade_partner = 0; + clif_tradecancelled(sd); return; } -- cgit v1.2.3-70-g09d2