From 03e448cdef05a878322b7486a2c35e00df75131e Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 20 Sep 2014 20:25:29 -0300 Subject: Fixed @at with buyingstore issue Where it'd not leave channels upon starting autotrade (for buying stores only), no report to link -- noticed while working on a different report. Signed-off-by: shennetsind --- src/map/atcommand.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/map/atcommand.c b/src/map/atcommand.c index d6b2ae1ab..459a4a2ee 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -5473,17 +5473,13 @@ ACMD(autotrade) { ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, SCFLAG_NONE); } - /* currently standalone is not supporting buyingstores, so we rely on the previous method */ - if( sd->state.buyingstore ) { - clif->authfail_fd(fd, 15); - return true; - } - - clif->chsys_quit(sd); clif->authfail_fd(sd->fd, 15); - + + /* currently standalone is not supporting buyingstores, so we rely on the previous method */ + if( sd->state.buyingstore ) + return true; #ifdef AUTOTRADE_PERSISTENCY pc->autotrade_prepare(sd); -- cgit v1.2.3-60-g2f50