diff options
author | Asheraf <acheraf1998@gmail.com> | 2018-06-06 05:40:43 +0000 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-06-18 13:31:41 +0100 |
commit | cc7b138dacab0ca76bdba721dec526b9525737f3 (patch) | |
tree | 40ee78622a51c9cc391ba471a536816ccc85f0e1 /src | |
parent | fb16806ce0588414c5b808df535b72ef9e7ff6ba (diff) | |
download | hercules-cc7b138dacab0ca76bdba721dec526b9525737f3.tar.gz hercules-cc7b138dacab0ca76bdba721dec526b9525737f3.tar.bz2 hercules-cc7b138dacab0ca76bdba721dec526b9525737f3.tar.xz hercules-cc7b138dacab0ca76bdba721dec526b9525737f3.zip |
followup ec527a6a2d2d915fb23ebb9b62c684eb7ad9b0b4 correct wrong respond message being used in stylist shop
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 4 | ||||
-rw-r--r-- | src/map/clif.h | 10 |
2 files changed, 11 insertions, 3 deletions
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 @@ -616,6 +616,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 **/ struct clif_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 |