summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/send.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/map/send.c b/src/map/send.c
index 98772ff..179e199 100644
--- a/src/map/send.c
+++ b/src/map/send.c
@@ -139,6 +139,14 @@ void send_pc_info(struct block_list* bl1,
if (!data)
return;
+ struct map_session_data *tsd = (struct map_session_data *)bl2;
+ if (tsd)
+ {
+ struct SessionExt *tdata = session_get_bysd(tsd);
+ if (!tdata || tdata->clientVersion < 4)
+ return;
+ }
+
WBUFW (buf, 0) = 0xb0a;
WBUFW (buf, 2) = 12; // len
WBUFL (buf, 4) = sd->bl.id;
@@ -157,6 +165,14 @@ void send_npc_info(struct block_list* bl1,
if (!bl1 || bl1->type != BL_NPC)
return;
+ struct map_session_data *tsd = (struct map_session_data *)bl2;
+ if (tsd)
+ {
+ struct SessionExt *tdata = session_get_bysd(tsd);
+ if (!tdata || tdata->clientVersion < 5)
+ return;
+ }
+
TBL_NPC *const nd = (TBL_NPC*)bl1;
char buf[12];