Corrected the showscript packet
* Follow up to 43f25e3. * The showscript packet was being sent to all players logged in which can be network intensive. Thanks to @Tokeiburu!
This commit is contained in:
parent
e2bf685a86
commit
47a69c082a
@ -18099,7 +18099,7 @@ void clif_showscript(struct block_list* bl, const char* message) {
|
|||||||
WBUFW(buf,2) = (uint16)(len+8);
|
WBUFW(buf,2) = (uint16)(len+8);
|
||||||
WBUFL(buf,4) = bl->id;
|
WBUFL(buf,4) = bl->id;
|
||||||
safestrncpy((char *) WBUFP(buf,8), message, len);
|
safestrncpy((char *) WBUFP(buf,8), message, len);
|
||||||
clif_send((unsigned char *) buf, WBUFW(buf,2), bl, ALL_CLIENT);
|
clif_send((unsigned char *) buf, WBUFW(buf,2), bl, AREA);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user