summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-02-24 06:25:33 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2013-02-24 06:25:33 +0800
commitadda8d74c3280ae1e3745591caafd9ce6e81ded7 (patch)
tree92bed0c62e31f392098c529184f78848dc9d6d05 /src/map/npc.c
parent6c6fbf026f039eeeaab4d1e6dd14155067b8075e (diff)
downloadhercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.tar.gz
hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.tar.bz2
hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.tar.xz
hercules-adda8d74c3280ae1e3745591caafd9ce6e81ded7.zip
Fixed Bug #7091
-Updated SN_SIGHT to its RE behavior. -Updated RE behavior that deals with NPC dialogs and using items/skills. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index f72f6532c..abe916b4f 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1194,7 +1194,7 @@ int npc_click(struct map_session_data* sd, struct npc_data* nd)
/*==========================================
*
*------------------------------------------*/
-int npc_scriptcont(struct map_session_data* sd, int id)
+int npc_scriptcont(struct map_session_data* sd, int id, bool closing)
{
nullpo_retr(1, sd);
@@ -1229,6 +1229,9 @@ int npc_scriptcont(struct map_session_data* sd, int id)
if( sd->progressbar.npc_id && DIFF_TICK(sd->progressbar.timeout,gettick()) > 0 )
return 1;
+ if( closing )
+ sd->st->state = END;
+
run_script_main(sd->st);
return 0;