summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmistry Haoyan <Equinox1991@gmail.com>2016-08-16 21:44:17 +0800
committerEmistry Haoyan <Equinox1991@gmail.com>2016-08-16 21:44:17 +0800
commitb5008d869eb23b601395e0e23ceda477e07ddd6a (patch)
tree497e3e5428831bd6a648770c53ecb20828febda2
parent225f499e1eae19946af8fb9347286a99bab99ac2 (diff)
downloadhercules-b5008d869eb23b601395e0e23ceda477e07ddd6a.tar.gz
hercules-b5008d869eb23b601395e0e23ceda477e07ddd6a.tar.bz2
hercules-b5008d869eb23b601395e0e23ceda477e07ddd6a.tar.xz
hercules-b5008d869eb23b601395e0e23ceda477e07ddd6a.zip
Corrected the showscript packet
The showscript packet was being sent to all players logged in which can be network intensive. Thanks to @Tokeiburu & aleos89! Based on https://github.com/rathena/rathena/commit/47a69c082a9520f14b19ebfd335c4956d0c5a13b
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f73553b72..ce88b32da 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -17747,7 +17747,7 @@ 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,ALL_CLIENT);
+ clif->send(buf,WBUFW(buf,2),bl,AREA);
}
void clif_status_change_end(struct block_list *bl, int tid, enum send_target target, int type) {