Skip to content

Commit 0e0a7db

Browse files
committed
Update ZC_ACK_RANKING for zero
1 parent 6550dc6 commit 0e0a7db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/map/clif.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15724,7 +15724,7 @@ static void clif_parse_PVPInfo(int fd, struct map_session_data *sd)
1572415724
/// ranking pointlist { <name>.24B <point>.L }*10
1572515725
static void clif_ranklist_sub(struct PACKET_ZC_ACK_RANKING_sub *ranks, enum fame_list_type type)
1572615726
{
15727-
#if !(PACKETVER_RE_NUM >= 20190703)
15727+
#if !(PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724)
1572815728
nullpo_retv(ranks);
1572915729

1573015730
struct fame_list* list;
@@ -15759,7 +15759,7 @@ static void clif_ranklist_sub(struct PACKET_ZC_ACK_RANKING_sub *ranks, enum fame
1575915759

1576015760
static void clif_ranklist_sub2(uint32 *chars, uint32 *points, enum fame_list_type type)
1576115761
{
15762-
#if PACKETVER_RE_NUM >= 20190703
15762+
#if PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724
1576315763
nullpo_retv(chars);
1576415764
nullpo_retv(points);
1576515765

@@ -15798,7 +15798,7 @@ static void clif_ranklist(struct map_session_data *sd, enum fame_list_type type)
1579815798
struct PACKET_ZC_ACK_RANKING *p = WFIFOP(fd, 0);
1579915799
p->packetType = HEADER_ZC_ACK_RANKING;
1580015800
p->rankType = type;
15801-
#if PACKETVER_RE_NUM >= 20190703
15801+
#if PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724
1580215802
clif->ranklist_sub2(p->chars, p->points, type);
1580315803
#else
1580415804
clif->ranklist_sub(p->ranks, type);

src/map/packets_struct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3480,7 +3480,7 @@ struct PACKET_ZC_REFINE_STATUS {
34803480
DEFINE_PACKET_HEADER(ZC_REFINE_STATUS, 0x0ada);
34813481
#endif
34823482

3483-
#if PACKETVER_RE_NUM >= 20190703
3483+
#if PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724
34843484
struct PACKET_ZC_ACK_RANKING_sub {
34853485
char name[NAME_LENGTH];
34863486
uint32 points;

0 commit comments

Comments
 (0)