summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-09-20 20:25:29 -0300
committershennetsind <ind@henn.et>2014-09-20 20:25:29 -0300
commit03e448cdef05a878322b7486a2c35e00df75131e (patch)
treef96722080fc24ad340ad9102030ce682b56c0717 /src
parent5b21335d6a08b5e9fd514598d40487da9fc9a868 (diff)
downloadhercules-03e448cdef05a878322b7486a2c35e00df75131e.tar.gz
hercules-03e448cdef05a878322b7486a2c35e00df75131e.tar.bz2
hercules-03e448cdef05a878322b7486a2c35e00df75131e.tar.xz
hercules-03e448cdef05a878322b7486a2c35e00df75131e.zip
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 <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c12
1 files 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);