summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAnnieRuru <jeankofannie2@gmail.com>2019-03-30 03:00:41 +0800
committerAnnieRuru <jeankofannie2@gmail.com>2019-03-30 03:00:41 +0800
commitc90ec16607f6ff4e422e2a5eca465a88af8b0af3 (patch)
tree78081ad6df236db7dc3ac48e3e2f0f8e981044d2 /src/map/clif.c
parente1e951c805916853e55ff5b9ce0531e0cf483ebf (diff)
downloadhercules-c90ec16607f6ff4e422e2a5eca465a88af8b0af3.tar.gz
hercules-c90ec16607f6ff4e422e2a5eca465a88af8b0af3.tar.bz2
hercules-c90ec16607f6ff4e422e2a5eca465a88af8b0af3.tar.xz
hercules-c90ec16607f6ff4e422e2a5eca465a88af8b0af3.zip
Add optional parameter for *showscript to send target to SELF only
- also remove the useless script_pushint
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a037d3436..4c3c746c4 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -19360,7 +19360,7 @@ static void clif_partytickack(struct map_session_data *sd, bool flag)
WFIFOSET(sd->fd, packet_len(0x2c9));
}
-static void clif_ShowScript(struct block_list *bl, const char *message)
+static void clif_ShowScript(struct block_list *bl, const char *message, enum send_target target)
{
#if PACKETVER >= 20110111
char buf[256];
@@ -19381,7 +19381,7 @@ static void clif_ShowScript(struct block_list *bl, const char *message)
WBUFW(buf,2) = len+8;
WBUFL(buf,4) = bl->id;
safestrncpy(WBUFP(buf,8),message,len);
- clif->send(buf,WBUFW(buf,2),bl,AREA);
+ clif->send(buf, WBUFW(buf,2), bl, target);
#endif
}