summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-08 23:28:11 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-08 23:28:11 +0000
commite12aa29d5931c4de6c84d3879abed6a170c2e927 (patch)
tree79497fe7e754e2a44234158f773436ff9ac844d9 /src
parentbe92739641c301ae5600b1e108d60fdb606698a1 (diff)
downloadhercules-e12aa29d5931c4de6c84d3879abed6a170c2e927.tar.gz
hercules-e12aa29d5931c4de6c84d3879abed6a170c2e927.tar.bz2
hercules-e12aa29d5931c4de6c84d3879abed6a170c2e927.tar.xz
hercules-e12aa29d5931c4de6c84d3879abed6a170c2e927.zip
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/branches/renewal@14452 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/trade.c6
1 files changed, 5 insertions, 1 deletions
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;
}