summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-23 02:20:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-23 02:20:03 +0300
commit371293407ca9937a03942a2f8e32f2eb7c87940c (patch)
tree3cc7f056d64216bd144daabfb774db7e7836cef1 /src/map/clif.c
parentab9362782312ad81ef1c1d47dcac464607a710a2 (diff)
downloadevol-hercules-371293407ca9937a03942a2f8e32f2eb7c87940c.tar.gz
evol-hercules-371293407ca9937a03942a2f8e32f2eb7c87940c.tar.bz2
evol-hercules-371293407ca9937a03942a2f8e32f2eb7c87940c.tar.xz
evol-hercules-371293407ca9937a03942a2f8e32f2eb7c87940c.zip
Fix hookStop usage.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 4d3160c..25bf56f 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -25,7 +25,6 @@
void eclif_quest_send_list(struct map_session_data *sd)
{
- hookStop();
int fd = sd->fd;
int i;
int info_len = 15;
@@ -46,11 +45,11 @@ void eclif_quest_send_list(struct map_session_data *sd)
}
WFIFOSET(fd, len);
+ hookStop();
}
void eclif_quest_add(struct map_session_data *sd, struct quest *qd)
{
- hookStop();
int fd = sd->fd;
struct quest_db *qi = quest->db(qd->quest_id);
@@ -63,6 +62,7 @@ void eclif_quest_add(struct map_session_data *sd, struct quest *qd)
WFIFOW(fd, 15) = 0;
WFIFOSET(fd, 107);
+ hookStop();
}
void eclif_charnameack(int *fdPtr, struct block_list *bl)
@@ -74,7 +74,6 @@ void eclif_charnameack(int *fdPtr, struct block_list *bl)
}
if (bl->type == BL_NPC)
{
- hookStop();
int fd = *fdPtr;
struct map_session_data* sd = (struct map_session_data*)session[fd]->session_data;
const char *tr = lang_pctrans(((TBL_NPC*)bl)->name, sd);
@@ -101,6 +100,7 @@ void eclif_charnameack(int *fdPtr, struct block_list *bl)
memcpy(WFIFOP(fd, 8), tr, trLen);
WFIFOSET(fd, len);
}
+ hookStop();
}
}