summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorAnnieRuru <jeankofannie2@gmail.com>2019-02-20 17:11:39 +0800
committerAnnieRuru <jeankofannie2@gmail.com>2019-02-20 17:11:39 +0800
commitec43ccf2d3d992386b2ba9d7812bcbd24639b063 (patch)
tree18d494a49727c5cc9ff328e655466bff481788e1 /src/map/atcommand.c
parentd496d8963fb4c2eb9015a2911a88299e29644681 (diff)
downloadhercules-ec43ccf2d3d992386b2ba9d7812bcbd24639b063.tar.gz
hercules-ec43ccf2d3d992386b2ba9d7812bcbd24639b063.tar.bz2
hercules-ec43ccf2d3d992386b2ba9d7812bcbd24639b063.tar.xz
hercules-ec43ccf2d3d992386b2ba9d7812bcbd24639b063.zip
Fix *atcommand cannot be use when PCBLOCK_COMMANDS is true
- also minor fix when atcommand failed, print source npc twice
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 87be6ab1b..cb53e4803 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -10270,9 +10270,9 @@ static bool atcommand_exec(const int fd, struct map_session_data *sd, const char
clif->message(fd, msg_fd(fd,143));
return false;
}
+ if (sd->block_action.commands) // *pcblock script command
+ return false;
}
- if (sd->block_action.commands) // *pcblock script command
- return false;
if (*message == atcommand->char_symbol)
is_atcommand = false;