diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-24 13:51:19 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-24 13:51:19 +0000 |
commit | 07e9df123a3352a712fb801893eabdbf0f0e442a (patch) | |
tree | db8f71db22fa9ddae69e5f7f76c1f074ad16eac7 /src | |
parent | 997cb08c07e6c1eaf698b7c1194473da5a69f464 (diff) | |
download | hercules-07e9df123a3352a712fb801893eabdbf0f0e442a.tar.gz hercules-07e9df123a3352a712fb801893eabdbf0f0e442a.tar.bz2 hercules-07e9df123a3352a712fb801893eabdbf0f0e442a.tar.xz hercules-07e9df123a3352a712fb801893eabdbf0f0e442a.zip |
Fixed a problem in the new trade window implementation (from r11830) where no trade acknowledgement messages would get sent (bugreport:1217).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12427 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/trade.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/trade.c b/src/map/trade.c index f60f7370b..f65827f2f 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -101,8 +101,8 @@ void trade_tradeack(struct map_session_data *sd, int type) return; //Already trading or no partner set. if ((tsd = map_id2sd(sd->trade_partner)) == NULL) { - sd->trade_partner=0; clif_tradestart(sd, 1); // character does not exist + sd->trade_partner=0; return; } @@ -113,12 +113,12 @@ void trade_tradeack(struct map_session_data *sd, int type) } if (type == 4) { // Cancel + clif_tradestart(tsd, type); + clif_tradestart(sd, type); sd->state.deal_locked = 0; sd->trade_partner = 0; tsd->state.deal_locked = 0; tsd->trade_partner = 0; - clif_tradestart(tsd, type); - clif_tradestart(sd, type); return; } @@ -129,9 +129,9 @@ void trade_tradeack(struct map_session_data *sd, int type) if (pc_isGM(tsd) < lowest_gm_level && (sd->bl.m != tsd->bl.m || !check_distance_bl(&sd->bl, &tsd->bl, TRADE_DISTANCE) )) { + clif_tradestart(sd, 0); // too far sd->trade_partner=0; tsd->trade_partner = 0; - clif_tradestart(sd, 0); // too far return; } @@ -139,12 +139,12 @@ void trade_tradeack(struct map_session_data *sd, int type) if (sd->npc_id || sd->vender_id || sd->state.storage_flag || tsd->npc_id || tsd->vender_id || tsd->state.storage_flag) { //Fail + clif_tradestart(sd, 2); + clif_tradestart(tsd, 2); sd->state.deal_locked = 0; sd->trade_partner = 0; tsd->state.deal_locked = 0; tsd->trade_partner = 0; - clif_tradestart(sd, 2); - clif_tradestart(tsd, 2); return; } |