diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-10-26 04:53:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-07 06:27:59 +0300 |
commit | 02293cef263fd93f8dc37bd14dd4eb319d46f88e (patch) | |
tree | bc8d5a9cb9778043ef911e3e13a915be96e87624 | |
parent | 8a57cadcc5046b59a2959d3c7d456f68b88cbc98 (diff) | |
download | hercules-02293cef263fd93f8dc37bd14dd4eb319d46f88e.tar.gz hercules-02293cef263fd93f8dc37bd14dd4eb319d46f88e.tar.bz2 hercules-02293cef263fd93f8dc37bd14dd4eb319d46f88e.tar.xz hercules-02293cef263fd93f8dc37bd14dd4eb319d46f88e.zip |
Update packet ZC_ITEM_PREVIEW for zero 2018-10-24
-rw-r--r-- | src/map/clif.c | 2 | ||||
-rw-r--r-- | src/map/packets_struct.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index b7017153b..e86494cd1 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -21971,7 +21971,7 @@ static void clif_item_preview(struct map_session_data *sd, int n) struct PACKET_ZC_ITEM_PREVIEW p; p.packetType = itemPreview; p.index = n + 2; -#if PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 +#if PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024 p.isDamaged = (sd->status.inventory[n].attribute & ATTR_BROKEN) != 0 ? 1 : 0; #endif p.refiningLevel = sd->status.inventory[n].refine; diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index c786e2457..a9affc76b 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -451,7 +451,7 @@ enum packet_headers { #else guildLeave = 0x15a, #endif -#if PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 +#if PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024 itemPreview = 0xb13, #else itemPreview = 0xab9, @@ -2880,7 +2880,7 @@ struct PACKET_ZC_CAMERA_INFO { struct PACKET_ZC_ITEM_PREVIEW { int16 packetType; int16 index; -#if PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 +#if PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024 int8 isDamaged; #endif int16 refiningLevel; |