From cc7b138dacab0ca76bdba721dec526b9525737f3 Mon Sep 17 00:00:00 2001 From: Asheraf Date: Wed, 6 Jun 2018 05:40:43 +0000 Subject: followup ec527a6a2d2d915fb23ebb9b62c684eb7ad9b0b4 correct wrong respond message being used in stylist shop --- src/map/clif.c | 4 ++-- src/map/clif.h | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index a4d2f62b1..8b1f2a8ca 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -20827,7 +20827,7 @@ void clif_parse_cz_req_style_change(int fd, struct map_session_data *sd) if (p->BottomAccessory > 0) clif->cz_req_style_change_sub(sd, LOOK_HEAD_BOTTOM, p->BottomAccessory, true); - clif->style_change_response(sd, true); + clif->style_change_response(sd, STYLIST_SHOP_SUCCESS); return; } @@ -20850,7 +20850,7 @@ void clif_cz_req_style_change_sub(struct map_session_data *sd, int type, int16 i } } -void clif_style_change_response(struct map_session_data *sd, int8 flag) +void clif_style_change_response(struct map_session_data *sd, enum stylist_shop flag) { #if PACKETVER >= 20151104 struct PACKET_ZC_STYLE_CHANGE_RES p; diff --git a/src/map/clif.h b/src/map/clif.h index 20ecf8e8d..67137f5d3 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -615,6 +615,14 @@ struct stylist_data_entry { }; VECTOR_DECL(struct stylist_data_entry) stylist_data[MAX_STYLIST_TYPE]; +/** +* Stylist Shop Responds +**/ +enum stylist_shop { + STYLIST_SHOP_SUCCESS, + STYLIST_SHOP_FAILURE +}; + /** * Clif.c Interface **/ @@ -1458,7 +1466,7 @@ struct clif_interface { void (*stylist_send_rodexitem) (struct map_session_data *sd, int16 itemid); void (*pReqStyleChange) (int fd, struct map_session_data *sd); void (*cz_req_style_change_sub) (struct map_session_data *sd, int type, int16 idx, bool isitem); - void (*style_change_response) (struct map_session_data *sd, int8 flag); + void (*style_change_response) (struct map_session_data *sd, enum stylist_shop flag); }; #ifdef HERCULES_CORE -- cgit v1.2.3-60-g2f50