summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-10 19:37:19 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-15 20:36:27 +0300
commit9e5b380f10d3e821ad087d394a77f726eb700d6b (patch)
tree71e2f7586cf0d2b549848a749793a709f2ceb715 /src/map
parentce31520acf04ff733965fb2b0f118b715c54bced (diff)
downloadhercules-9e5b380f10d3e821ad087d394a77f726eb700d6b.tar.gz
hercules-9e5b380f10d3e821ad087d394a77f726eb700d6b.tar.bz2
hercules-9e5b380f10d3e821ad087d394a77f726eb700d6b.tar.xz
hercules-9e5b380f10d3e821ad087d394a77f726eb700d6b.zip
Add enums into some rodex functions.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c4
-rw-r--r--src/map/clif.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a5f0e3933..2eb230c61 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -20683,7 +20683,7 @@ static void clif_parse_rodex_request_zeny(int fd, struct map_session_data *sd)
rodex->get_zeny(sd, rPacket->opentype, rPacket->MailID);
}
-static void clif_rodex_request_zeny(struct map_session_data *sd, int8 opentype, int64 mail_id, int8 result)
+static void clif_rodex_request_zeny(struct map_session_data *sd, int8 opentype, int64 mail_id, enum rodex_get_zeny result)
{
#if PACKETVER >= 20140409
struct PACKET_ZC_ACK_ZENY_FROM_MAIL *sPacket;
@@ -20711,7 +20711,7 @@ static void clif_parse_rodex_request_items(int fd, struct map_session_data *sd)
rodex->get_items(sd, rPacket->opentype, rPacket->MailID);
}
-static void clif_rodex_request_items(struct map_session_data *sd, int8 opentype, int64 mail_id, int8 result)
+static void clif_rodex_request_items(struct map_session_data *sd, int8 opentype, int64 mail_id, enum rodex_get_items result)
{
#if PACKETVER >= 20140409
struct PACKET_ZC_ACK_ITEM_FROM_MAIL *sPacket;
diff --git a/src/map/clif.h b/src/map/clif.h
index c58297c5c..53a97f484 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -57,6 +57,8 @@ struct view_data;
enum clif_messages;
enum rodex_add_item;
+enum rodex_get_zeny;
+enum rodex_get_items;
/**
* Defines
@@ -1467,9 +1469,9 @@ struct clif_interface {
void (*rodex_delete_mail) (struct map_session_data *sd, int8 opentype, int64 mail_id);
void (*pRodexRefreshMaillist) (int fd, struct map_session_data *sd);
void (*pRodexRequestZeny) (int fd, struct map_session_data *sd);
- void (*rodex_request_zeny) (struct map_session_data *sd, int8 opentype, int64 mail_id, int8 result);
+ void (*rodex_request_zeny) (struct map_session_data *sd, int8 opentype, int64 mail_id, enum rodex_get_zeny result);
void (*pRodexRequestItems) (int fd, struct map_session_data *sd);
- void (*rodex_request_items) (struct map_session_data *sd, int8 opentype, int64 mail_id, int8 result);
+ void (*rodex_request_items) (struct map_session_data *sd, int8 opentype, int64 mail_id, enum rodex_get_items result);
void (*rodex_icon) (int fd, bool show);
void (*skill_scale) (struct block_list *bl, int src_id, int x, int y, uint16 skill_id, uint16 skill_lv, int casttime);
/* Clan System */