diff options
Diffstat (limited to 'src/emap/send.c')
-rw-r--r-- | src/emap/send.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emap/send.c b/src/emap/send.c index dd9d7ac..82ba452 100644 --- a/src/emap/send.c +++ b/src/emap/send.c @@ -211,7 +211,7 @@ void send_pc_info(struct block_list* bl1, int len = 14; if (tdata->clientVersion >= 24) len = 20; - else if (bl1 == bl2 || tdata->clientVersion >= 21) + else if (bl1 == bl2) len = 16; char buf[len]; WBUFW (buf, 0) = 0xb0a + evolPacketOffset; @@ -222,7 +222,7 @@ void send_pc_info(struct block_list* bl1, else WBUFL (buf, 8) = 0; WBUFW (buf, 12) = data->mount; - if (bl1 == bl2 || tdata->clientVersion >= 21) + if (bl1 == bl2) WBUFW (buf, 14) = data->language; if (tdata->clientVersion >= 24) { @@ -388,7 +388,7 @@ void send_client_command(struct map_session_data *sd, const char *const command) const unsigned int len = (unsigned int)strlen(command); const int fd = sd->fd; - WFIFOHEAD (fd, len); + WFIFOHEAD (fd, len + 4); WFIFOW (fd, 0) = 0xb16 + evolPacketOffset; WFIFOW (fd, 2) = len + 4; memcpy (WFIFOP (fd, 4), command, len); |