summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-18 20:40:52 +0200
committerGitHub <noreply@github.com>2018-06-18 20:40:52 +0200
commit1f6dff9f8938c46292778e972171c523b9846abe (patch)
tree0aa0bd292ae0c24f4c01d2c7617da442ed93a9f8 /src/map
parenta9d70598a44e000479d4b2a9347e2b76f35bd9d6 (diff)
parentcc7b138dacab0ca76bdba721dec526b9525737f3 (diff)
downloadhercules-1f6dff9f8938c46292778e972171c523b9846abe.tar.gz
hercules-1f6dff9f8938c46292778e972171c523b9846abe.tar.bz2
hercules-1f6dff9f8938c46292778e972171c523b9846abe.tar.xz
hercules-1f6dff9f8938c46292778e972171c523b9846abe.zip
Merge pull request #2066 from Asheraf/stylistfollowup
correct wrong respond message being used in stylist shop
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c4
-rw-r--r--src/map/clif.h10
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