summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-26 07:28:28 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-12 21:18:06 +0300
commita3b66189064b5b7ec2be2caf6d2ae42c5d9a7851 (patch)
treeb8ae37d195986170b77ea27cbe6c580ab62144a3
parent15f51b36f4eb881b33bd56b434ba181d3add754d (diff)
downloadhercules-a3b66189064b5b7ec2be2caf6d2ae42c5d9a7851.tar.gz
hercules-a3b66189064b5b7ec2be2caf6d2ae42c5d9a7851.tar.bz2
hercules-a3b66189064b5b7ec2be2caf6d2ae42c5d9a7851.tar.xz
hercules-a3b66189064b5b7ec2be2caf6d2ae42c5d9a7851.zip
Add missing enum values into roulette generate ack packet.
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/clif.h14
2 files changed, 10 insertions, 6 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 3f45c7aca..d27d659b2 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -20083,7 +20083,7 @@ static bool clif_parse_roulette_db(void)
/**
*
**/
-static void clif_roulette_generate_ack(struct map_session_data *sd, unsigned char result, short stage, short prizeIdx, int bonusItemID)
+static void clif_roulette_generate_ack(struct map_session_data *sd, enum GENERATE_ROULETTE_ACK result, short stage, short prizeIdx, int bonusItemID)
{
#if PACKETVER >= 20140612
struct packet_roulette_generate_ack p;
diff --git a/src/map/clif.h b/src/map/clif.h
index 2aab4c227..7f3dc204d 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -493,10 +493,14 @@ enum RECV_ROULETTE_ITEM_ACK {
};
enum GENERATE_ROULETTE_ACK {
- GENERATE_ROULETTE_SUCCESS = 0x0,
- GENERATE_ROULETTE_FAILED = 0x1,
- GENERATE_ROULETTE_NO_ENOUGH_POINT = 0x2,
- GENERATE_ROULETTE_LOSING = 0x3,
+ GENERATE_ROULETTE_SUCCESS = 0x0,
+ GENERATE_ROULETTE_FAILED = 0x1,
+ GENERATE_ROULETTE_NO_ENOUGH_POINT = 0x2,
+ GENERATE_ROULETTE_LOSING = 0x3,
+ GENERATE_ROULETTE_NO_ENOUGH_INVENTORY_SPACE = 0x4,
+#if PACKETVER >= 20141001
+ GENERATE_ROULETTE_CANT_PLAY = 0x5,
+#endif
};
enum OPEN_ROULETTE_ACK{
@@ -1219,7 +1223,7 @@ struct clif_interface {
void (*npc_market_purchase_ack) (struct map_session_data *sd, const struct itemlist *item_list, unsigned char response);
/* */
bool (*parse_roulette_db) (void);
- void (*roulette_generate_ack) (struct map_session_data *sd, unsigned char result, short stage, short prizeIdx, int bonusItemID);
+ void (*roulette_generate_ack) (struct map_session_data *sd, enum GENERATE_ROULETTE_ACK result, short stage, short prizeIdx, int bonusItemID);
/* Merge Items */
void (*openmergeitem) (int fd, struct map_session_data *sd);
void (*cancelmergeitem) (int fd, struct map_session_data *sd);