summaryrefslogtreecommitdiff
path: root/src/map/send.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-21 00:47:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-21 00:47:41 +0300
commitd67d81e40903434be0543ef47fe16e0d1d01c31a (patch)
treed071823d62deb16344147fb95fc3f5473db70a1e /src/map/send.c
parent32260349036f3af44873d13d12bedb3883bb17bf (diff)
downloadevol-hercules-d67d81e40903434be0543ef47fe16e0d1d01c31a.tar.gz
evol-hercules-d67d81e40903434be0543ef47fe16e0d1d01c31a.tar.bz2
evol-hercules-d67d81e40903434be0543ef47fe16e0d1d01c31a.tar.xz
evol-hercules-d67d81e40903434be0543ef47fe16e0d1d01c31a.zip
map: fix working with old clients.
Diffstat (limited to 'src/map/send.c')
-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];