summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-18 21:50:13 -0300
committershennetsind <ind@henn.et>2013-02-18 21:50:13 -0300
commitbf760554a5cf55d53f3ae23e2f3a1118ce9f13bd (patch)
treed8a10a80671ca1cafd5de7bdd4eb292e229bae57
parent55134e898bd660ade5b5005a5f44fd10f5452647 (diff)
downloadhercules-bf760554a5cf55d53f3ae23e2f3a1118ce9f13bd.tar.gz
hercules-bf760554a5cf55d53f3ae23e2f3a1118ce9f13bd.tar.bz2
hercules-bf760554a5cf55d53f3ae23e2f3a1118ce9f13bd.tar.xz
hercules-bf760554a5cf55d53f3ae23e2f3a1118ce9f13bd.zip
Fixed Bug #7085
#autotrade now relogs the target, not the caster. http://hercules.ws/board/tracker/issue-7085-autotrade/ Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/atcommand.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index ed42fdad4..0d56ce9bf 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -5671,12 +5671,11 @@ ACMD_FUNC(autotrade)
}
sd->state.autotrade = 1;
- if( battle_config.at_timeout )
- {
+ if( battle_config.at_timeout ) {
int timeout = atoi(message);
status_change_start(&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, 0);
}
- clif_authfail_fd(fd, 15);
+ clif_authfail_fd(sd->fd, 15);
return 0;
}