diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-08-20 09:23:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-08-21 22:36:42 +0300 |
commit | 4c84426c25b489dedd86bdae1333b4c826cf074d (patch) | |
tree | 064a10883116bd46b83950b2bb52caef94f7e858 | |
parent | 2f78bbf2379fa1452a783e9d7a9035e9e6732479 (diff) | |
download | hercules-4c84426c25b489dedd86bdae1333b4c826cf074d.tar.gz hercules-4c84426c25b489dedd86bdae1333b4c826cf074d.tar.bz2 hercules-4c84426c25b489dedd86bdae1333b4c826cf074d.tar.xz hercules-4c84426c25b489dedd86bdae1333b4c826cf074d.zip |
Update packet ZC_ACK_RANKING for main clients
-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 a027759b4..5522154d8 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -15729,7 +15729,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 || PACKETVER_ZERO_NUM >= 20190724) +#if !(PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724) nullpo_retv(ranks); struct fame_list* list; @@ -15764,7 +15764,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 || PACKETVER_ZERO_NUM >= 20190724 +#if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724 nullpo_retv(chars); nullpo_retv(points); @@ -15803,7 +15803,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 || PACKETVER_ZERO_NUM >= 20190724 +#if PACKETVER_MAIN_NUM >= 20190731 || 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 0b1f88c2c..d12dc14d4 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3460,7 +3460,7 @@ struct PACKET_ZC_REFINE_STATUS { DEFINE_PACKET_HEADER(ZC_REFINE_STATUS, 0x0ada); #endif -#if PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724 +#if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724 struct PACKET_ZC_ACK_RANKING_sub { char name[NAME_LENGTH]; uint32 points; |