diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-02 23:52:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-12 01:53:19 +0300 |
commit | 897a878025bdbec5cef4371310d622b3e3897f15 (patch) | |
tree | 577b94376a6dd381e8194086d0f2ad99986cea7f /src/char | |
parent | 8d028cbacdc4a424621c94a521c375baa234bdce (diff) | |
download | hercules-897a878025bdbec5cef4371310d622b3e3897f15.tar.gz hercules-897a878025bdbec5cef4371310d622b3e3897f15.tar.bz2 hercules-897a878025bdbec5cef4371310d622b3e3897f15.tar.xz hercules-897a878025bdbec5cef4371310d622b3e3897f15.zip |
Remove useless code from char_send_map_info.
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/char/char.c b/src/char/char.c index 486cc7c03..914017092 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -4419,9 +4419,7 @@ static void char_send_map_info(int fd, int i, uint32 subnet_map_ip, struct mmo_c mapindex->getmapname_ext(mapindex_id2name(cd->last_point.map), WFIFOP(fd, 6)); WFIFOL(fd, 22) = htonl((subnet_map_ip) ? subnet_map_ip : chr->server[i].ip); WFIFOW(fd, 26) = sockt->ntows(htons(chr->server[i].port)); // [!] LE byte order here [!] -#if PACKETVER < 20170329 - memset(WFIFOP(fd, 28), 0, 128); -#else +#if PACKETVER >= 20170329 if (dnsHost != NULL) { safestrncpy(WFIFOP(fd, 28), dnsHost, 128); } else { |