diff options
-rw-r--r-- | src/map/clif.c | 10 | ||||
-rw-r--r-- | src/map/packets.h | 1 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 1c0e7ea37..e18bbbf95 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -14263,8 +14263,9 @@ void clif_parse_ranklist(int fd, struct map_session_data *sd) { } // 097e <RankingType>.W <point>.L <TotalPoint>.L (ZC_UPDATE_RANKING_POINT) -void clif_update_rankingpoint(struct map_session_data *sd, enum fame_list_type type, int points) { -#if PACKETVER < 20130710 +void clif_update_rankingpoint(struct map_session_data *sd, enum fame_list_type type, int points) +{ +#if PACKETVER < 20120502 switch( type ) { case RANKTYPE_BLACKSMITH: clif->fame_blacksmith(sd,points); break; case RANKTYPE_ALCHEMIST: clif->fame_alchemist(sd,points); break; @@ -14273,15 +14274,16 @@ void clif_update_rankingpoint(struct map_session_data *sd, enum fame_list_type t #else int fd; + int len = packet_len(0x97e); nullpo_retv(sd); fd = sd->fd; - WFIFOHEAD(fd, 12); + WFIFOHEAD(fd, len); WFIFOW(fd, 0) = 0x97e; WFIFOW(fd, 2) = type; WFIFOL(fd, 4) = points; WFIFOL(fd, 8) = sd->status.fame; - WFIFOSET(fd, 12); + WFIFOSET(fd, len); #endif } diff --git a/src/map/packets.h b/src/map/packets.h index 4d59d42c1..909c26a35 100644 --- a/src/map/packets.h +++ b/src/map/packets.h @@ -2050,6 +2050,7 @@ packet(0x96e,-1,clif->ackmergeitems); #if PACKETVER >= 20120502 // shuffle packets not added packet(0x097d,288); // ZC_ACK_RANKING + packet(0x097e,12); // ZC_UPDATE_RANKING_POINT #endif #ifndef PACKETVER_RE |