diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-20 22:40:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-28 04:41:41 +0300 |
commit | 95e77d7d3cb31c7db1df2adb75436db2c37d8211 (patch) | |
tree | 92cb249923dfb83c4b59909ddba6ebdc893284d1 /src/map/clif.c | |
parent | 953a195826376293a092dc00bd8400dd3c88e37a (diff) | |
download | hercules-95e77d7d3cb31c7db1df2adb75436db2c37d8211.tar.gz hercules-95e77d7d3cb31c7db1df2adb75436db2c37d8211.tar.bz2 hercules-95e77d7d3cb31c7db1df2adb75436db2c37d8211.tar.xz hercules-95e77d7d3cb31c7db1df2adb75436db2c37d8211.zip |
Fix check for packet 0xa43 and related packets.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 7a50032c1..2076a922b 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -6771,7 +6771,7 @@ static void clif_party_member_info(struct party_data *p, struct map_session_data packet.GID = sd->status.char_id; #endif packet.leader = (p->party.member[i].leader) ? 0 : 1; -#if PACKETVER >= 20170502 +#if PACKETVER_MAIN_NUM >= 20170524 || PACKETVER_RE_NUM >= 20170502 || defined(PACKETVER_ZERO) packet.class = sd->status.class; packet.baseLevel = sd->status.base_level; #endif @@ -6822,7 +6822,7 @@ static void clif_party_info(struct party_data *p, struct map_session_data *sd) mapindex->getmapname_ext(mapindex_id2name(m->map), packet->members[c].mapName); packet->members[c].leader = (m->leader) ? 0 : 1; packet->members[c].offline = (m->online) ? 0 : 1; -#if PACKETVER >= 20170502 +#if PACKETVER_MAIN_NUM >= 20170524 || PACKETVER_RE_NUM >= 20170502 || defined(PACKETVER_ZERO) packet->members[c].class = m->class; packet->members[c].baseLevel = m->lv; #endif @@ -6841,8 +6841,7 @@ static void clif_party_info(struct party_data *p, struct map_session_data *sd) /// 0abd <account id>.L <job>.W <level>.W static void clif_party_job_and_level(struct map_session_data *sd) { -// [4144] packet 0xabd added in client in 2017-02-15 because this probably it can works for clients older than 20170502 -#if PACKETVER >= 20170502 +#if PACKETVER_MAIN_NUM >= 20170502 || PACKETVER_RE_NUM >= 20170419 || defined(PACKETVER_ZERO) unsigned char buf[10]; nullpo_retv(sd); |