From 897a878025bdbec5cef4371310d622b3e3897f15 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Jul 2018 23:52:27 +0300 Subject: Remove useless code from char_send_map_info. --- src/char/char.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3-60-g2f50