summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-06 17:07:43 -0300
committershennetsind <ind@henn.et>2013-06-06 17:07:43 -0300
commit71ac5d07a0d18dc56b73ebc2b2ae095eacd25241 (patch)
tree7a277f07396a77e8afe624a379cc0f99da5f0a87 /src/map/clif.c
parentb98ea9eb62b4f0c7bf121e2c67638ea7e9726110 (diff)
downloadhercules-71ac5d07a0d18dc56b73ebc2b2ae095eacd25241.tar.gz
hercules-71ac5d07a0d18dc56b73ebc2b2ae095eacd25241.tar.bz2
hercules-71ac5d07a0d18dc56b73ebc2b2ae095eacd25241.tar.xz
hercules-71ac5d07a0d18dc56b73ebc2b2ae095eacd25241.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