diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-10 21:12:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-10 21:12:05 +0300 |
commit | c7c8e583bf2284bd87d016866d840c05df37cfc7 (patch) | |
tree | b314b48fa3719681e8b1cfdc9ecfe474d0cc8128 /src/emap | |
parent | 664d010459b4fdc8f032506082d615a61123b506 (diff) | |
download | evol-hercules-c7c8e583bf2284bd87d016866d840c05df37cfc7.tar.gz evol-hercules-c7c8e583bf2284bd87d016866d840c05df37cfc7.tar.bz2 evol-hercules-c7c8e583bf2284bd87d016866d840c05df37cfc7.tar.xz evol-hercules-c7c8e583bf2284bd87d016866d840c05df37cfc7.zip |
In most cases send in send_pc_info language field even if some clients not support it.
Old clients ignoring it anyway.
Diffstat (limited to 'src/emap')
-rw-r--r-- | src/emap/send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emap/send.c b/src/emap/send.c index 7aceb20..5292f7b 100644 --- a/src/emap/send.c +++ b/src/emap/send.c @@ -188,7 +188,7 @@ void send_pc_info(struct block_list* bl1, return; int len = 14; - if (tdata->clientVersion >= 21) + if (bl1 == bl2 || tdata->clientVersion >= 21) len = 16; char buf[len]; WBUFW (buf, 0) = 0xb0a; @@ -199,7 +199,7 @@ void send_pc_info(struct block_list* bl1, else WBUFL (buf, 8) = 0; WBUFW (buf, 12) = data->mount; - if (tdata->clientVersion >= 21) + if (bl1 == bl2 || tdata->clientVersion >= 21) WBUFW (buf, 14) = data->language; clif->send(&buf, (int)sizeof(buf), bl2, target); |