Forráskód Böngészése

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!
Aleos 8 éve
szülő
commit
47a69c082a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/map/clif.c

+ 1 - 1
src/map/clif.c

@@ -18099,7 +18099,7 @@ void clif_showscript(struct block_list* bl, const char* message) {
 	WBUFW(buf,2) = (uint16)(len+8);
 	WBUFL(buf,4) = bl->id;
 	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);
 }
 
 /**