diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-11-02 04:54:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-11-03 17:12:49 +0300 |
commit | 662b9832d227e6d1e795de55512457fb02842243 (patch) | |
tree | 6b8509c1f86f0475a7346c96679eec6afa243dc8 /src | |
parent | 5014f675f4d49ea4ddcb388c79f8e32c9e291988 (diff) | |
download | hercules-662b9832d227e6d1e795de55512457fb02842243.tar.gz hercules-662b9832d227e6d1e795de55512457fb02842243.tar.bz2 hercules-662b9832d227e6d1e795de55512457fb02842243.tar.xz hercules-662b9832d227e6d1e795de55512457fb02842243.zip |
Fix version for packet 0x097e ZC_UPDATE_RANKING_POINT.
Diffstat (limited to 'src')
-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 |