From 794ce3c89497a17bd64eacbc82bce22f07f00acb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Dec 2018 04:29:15 +0300 Subject: Fix HPM generation for old packet versions. From now HPM generated for 20031028 main packet version. --- src/map/clif.c | 2 +- src/map/packets_struct.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index e8780c6ff..28b953de5 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1628,7 +1628,7 @@ static bool clif_spawn(struct block_list *bl) /// 022e .24B .B .W .W .W .W .W .W .W .W .W .W .W .W .W .W .W .W .L .L .W .W static void clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int flag) { -#if PACKETVER_MAIN_NUM >= 20101005 || PACKETVER_RE_NUM >= 20080827 || defined(PACKETVER_ZERO_NUM) +#if PACKETVER_MAIN_NUM >= 20101005 || PACKETVER_RE_NUM >= 20080827 || defined(PACKETVER_ZERO) struct status_data *hstatus; enum homun_type htype; struct PACKET_ZC_PROPERTY_HOMUN p; diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index f9b5fab0d..d648d262e 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -2270,7 +2270,7 @@ struct PACKET_ZC_ACK_WEAPONREFINE { #endif } __attribute__((packed)); -#if PACKETVER_MAIN_NUM >= 20131230 || PACKETVER_RE_NUM >= 20131230 || defined(PACKETVER_ZERO_NUM) +#if PACKETVER_MAIN_NUM >= 20131230 || PACKETVER_RE_NUM >= 20131230 || defined(PACKETVER_ZERO) // PACKET_ZC_PROPERTY_HOMUN2 struct PACKET_ZC_PROPERTY_HOMUN { int16 packetType; @@ -2303,7 +2303,7 @@ struct PACKET_ZC_PROPERTY_HOMUN { uint16 range; } __attribute__((packed)); DEFINE_PACKET_HEADER(ZC_PROPERTY_HOMUN, 0x09f7); -#elif PACKETVER_MAIN_NUM >= 20101005 || PACKETVER_RE_NUM >= 20080827 || defined(PACKETVER_ZERO_NUM) +#elif PACKETVER_MAIN_NUM >= 20101005 || PACKETVER_RE_NUM >= 20080827 || defined(PACKETVER_ZERO) // PACKET_ZC_PROPERTY_HOMUN1 struct PACKET_ZC_PROPERTY_HOMUN { int16 packetType; -- cgit v1.2.3-70-g09d2