summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-06 17:07:43 -0300
committerEuphy <euphy@rathena.org>2013-06-15 15:39:20 -0400
commit2d43e09399fa0f8134465d540b4513e695b92e56 (patch)
treef5efd77052511f0a9f99b573dbde7ffb49aa3d23 /src/map/clif.c
parent61ff15329be3636a6bb878a4039c76d9ad00b344 (diff)
downloadhercules-2d43e09399fa0f8134465d540b4513e695b92e56.tar.gz
hercules-2d43e09399fa0f8134465d540b4513e695b92e56.tar.bz2
hercules-2d43e09399fa0f8134465d540b4513e695b92e56.tar.xz
hercules-2d43e09399fa0f8134465d540b4513e695b92e56.zip
Fixed Bug #7328
Special Thanks to Joseph / j-tkay ! http://hercules.ws/board/tracker/issue-7328-close-and-end/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 319be6b3e..42043c004 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -1834,11 +1834,12 @@ void clif_selllist(struct map_session_data *sd)
/// - set npcid of dialog window (0 by default)
/// - if set to clear on next mes, clear contents
/// - append this text
-void clif_scriptmes(struct map_session_data *sd, int npcid, const char *mes)
-{
+void clif_scriptmes(struct map_session_data *sd, int npcid, const char *mes) {
int fd = sd->fd;
int slen = strlen(mes) + 9;
+ sd->state.dialog = 1;
+
WFIFOHEAD(fd, slen);
WFIFOW(fd,0)=0xb4;
WFIFOW(fd,2)=slen;
@@ -9328,6 +9329,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
}
sd->state.warping = 0;
+ sd->state.dialog = 0;/* reset when warping, client dialog will go missing */
// look
#if PACKETVER < 4