diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-04-06 18:20:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-04-07 22:40:03 +0300 |
commit | e610e222c57c1268fce72bc9578b42f655c18545 (patch) | |
tree | 3954ed57ab46f4e403d83215822d6ca4a9e24189 /src | |
parent | 7ae24dade4167ed76a62905d8f96280ceeee5e52 (diff) | |
download | hercules-e610e222c57c1268fce72bc9578b42f655c18545.tar.gz hercules-e610e222c57c1268fce72bc9578b42f655c18545.tar.bz2 hercules-e610e222c57c1268fce72bc9578b42f655c18545.tar.xz hercules-e610e222c57c1268fce72bc9578b42f655c18545.zip |
Add packet CZ_STYLE_CLOSE
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 7 | ||||
-rw-r--r-- | src/map/clif.h | 1 | ||||
-rw-r--r-- | src/map/packets.h | 2 | ||||
-rw-r--r-- | src/map/packets_struct.h | 7 |
4 files changed, 17 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 63ad55c3d..109f78553 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -21948,6 +21948,12 @@ static void clif_parse_cz_req_style_change2(int fd, struct map_session_data *sd) return; } +static void clif_parse_cz_style_close(int fd, struct map_session_data *sd) __attribute__((nonnull(2))); +static void clif_parse_cz_style_close(int fd, struct map_session_data *sd) +{ + // do nothing +} + static void clif_style_change_response(struct map_session_data *sd, enum stylist_shop flag) { #if PACKETVER >= 20151104 @@ -23386,6 +23392,7 @@ void clif_defaults(void) clif->pReqStyleChange = clif_parse_cz_req_style_change; clif->pReqStyleChange2 = clif_parse_cz_req_style_change2; + clif->pStyleClose = clif_parse_cz_style_close; clif->style_change_response = clif_style_change_response; clif->camera_showWindow = clif_camera_showWindow; diff --git a/src/map/clif.h b/src/map/clif.h index 55f7906c3..367e28449 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -1566,6 +1566,7 @@ struct clif_interface { void (*pReqStyleChange) (int fd, struct map_session_data *sd); void (*pReqStyleChange2) (int fd, struct map_session_data *sd); + void (*pStyleClose) (int fd, struct map_session_data *sd); void (*style_change_response) (struct map_session_data *sd, enum stylist_shop flag); void (*pPetEvolution) (int fd, struct map_session_data *sd); void (*petEvolutionResult) (int fd, enum pet_evolution_result result); diff --git a/src/map/packets.h b/src/map/packets.h index bf80d96c7..a0b6b7f4b 100644 --- a/src/map/packets.h +++ b/src/map/packets.h @@ -1777,8 +1777,10 @@ packet(0x96e,clif->ackmergeitems); #if PACKETVER >= 20151104 // new packets packet(0x0a46,clif->pReqStyleChange); + packet(0x0a48,clif->pStyleClose); #endif + // 2016-03-23aRagexeRE #if PACKETVER >= 20160323 // new packets diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 109532c3e..96337d32b 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3181,6 +3181,13 @@ struct PACKET_CZ_COOLDOWN_RESET { DEFINE_PACKET_HEADER(CZ_COOLDOWN_RESET, 0x0a88); #endif +#if PACKETVER >= 20151104 +struct PACKET_CZ_STYLE_CLOSE { + int16 packetType; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_STYLE_CLOSE, 0x0a48); +#endif + #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute #pragma pack(pop) #endif // not NetBSD < 6 / Solaris |