diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-07-24 20:38:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-07-24 23:54:31 +0300 |
commit | 92e35037e107ea89d245df3dfe60aa687c5d1f83 (patch) | |
tree | 8eef5427f2040ee84fd05de7aaeb645b18c81105 /src/map | |
parent | 99f1db754f40e42af9402157acc9f1d0cbbaa64e (diff) | |
download | hercules-92e35037e107ea89d245df3dfe60aa687c5d1f83.tar.gz hercules-92e35037e107ea89d245df3dfe60aa687c5d1f83.tar.bz2 hercules-92e35037e107ea89d245df3dfe60aa687c5d1f83.tar.xz hercules-92e35037e107ea89d245df3dfe60aa687c5d1f83.zip |
Update ZC_ACK_RANKING for zero
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 6 | ||||
-rw-r--r-- | src/map/packets_struct.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 6656d12f6..3b7691ae4 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -15724,7 +15724,7 @@ static void clif_parse_PVPInfo(int fd, struct map_session_data *sd) /// ranking pointlist { <name>.24B <point>.L }*10 static void clif_ranklist_sub(struct PACKET_ZC_ACK_RANKING_sub *ranks, enum fame_list_type type) { -#if !(PACKETVER_RE_NUM >= 20190703) +#if !(PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724) nullpo_retv(ranks); struct fame_list* list; @@ -15759,7 +15759,7 @@ static void clif_ranklist_sub(struct PACKET_ZC_ACK_RANKING_sub *ranks, enum fame static void clif_ranklist_sub2(uint32 *chars, uint32 *points, enum fame_list_type type) { -#if PACKETVER_RE_NUM >= 20190703 +#if PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724 nullpo_retv(chars); nullpo_retv(points); @@ -15798,7 +15798,7 @@ static void clif_ranklist(struct map_session_data *sd, enum fame_list_type type) struct PACKET_ZC_ACK_RANKING *p = WFIFOP(fd, 0); p->packetType = HEADER_ZC_ACK_RANKING; p->rankType = type; -#if PACKETVER_RE_NUM >= 20190703 +#if PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724 clif->ranklist_sub2(p->chars, p->points, type); #else clif->ranklist_sub(p->ranks, type); diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index f41008889..59f148c94 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3480,7 +3480,7 @@ struct PACKET_ZC_REFINE_STATUS { DEFINE_PACKET_HEADER(ZC_REFINE_STATUS, 0x0ada); #endif -#if PACKETVER_RE_NUM >= 20190703 +#if PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724 struct PACKET_ZC_ACK_RANKING_sub { char name[NAME_LENGTH]; uint32 points; |