diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-05-11 00:50:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-05-29 05:01:36 +0300 |
commit | d4213cd795a6a5e3241d1f3d9de147a11bf21097 (patch) | |
tree | 3a1c9c35d9a305670646d80b2b06887889d2de96 /src | |
parent | fc175850efdb4dd258dd8bbab4b01be8f1c327fa (diff) | |
download | hercules-d4213cd795a6a5e3241d1f3d9de147a11bf21097.tar.gz hercules-d4213cd795a6a5e3241d1f3d9de147a11bf21097.tar.bz2 hercules-d4213cd795a6a5e3241d1f3d9de147a11bf21097.tar.xz hercules-d4213cd795a6a5e3241d1f3d9de147a11bf21097.zip |
Use enum clif_messages in functions clif_msgtable*.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 10 | ||||
-rw-r--r-- | src/map/clif.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 06f054ff2..bf7c31460 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9171,7 +9171,7 @@ void clif_viewequip_ack(struct map_session_data* sd, struct map_session_data* ts * @param sd The target character. * @param msg_id msgstringtable message index, 0-based (@see enum clif_messages) */ -void clif_msgtable(struct map_session_data* sd, unsigned short msg_id) +void clif_msgtable(struct map_session_data* sd, enum clif_messages msg_id) { int fd; nullpo_retv(sd); @@ -9192,7 +9192,7 @@ void clif_msgtable(struct map_session_data* sd, unsigned short msg_id) * @param msg_id msgstringtable message index, 0-based (@see enum clif_messages) * @param value The value to fill %d. */ -void clif_msgtable_num(struct map_session_data *sd, unsigned short msg_id, int value) +void clif_msgtable_num(struct map_session_data *sd, enum clif_messages msg_id, int value) { #if PACKETVER >= 20090805 int fd; @@ -9219,7 +9219,7 @@ void clif_msgtable_num(struct map_session_data *sd, unsigned short msg_id, int v * @param skill_id ID of the skill to display. * @param msg_id msgstringtable message index, 0-based (@see enum clif_messages) */ -void clif_msgtable_skill(struct map_session_data* sd, uint16 skill_id, int msg_id) +void clif_msgtable_skill(struct map_session_data* sd, uint16 skill_id, enum clif_messages msg_id) { int fd; @@ -9240,7 +9240,7 @@ void clif_msgtable_skill(struct map_session_data* sd, uint16 skill_id, int msg_i * @param msg_id msgstringtable message index, 0-based (@see enum clif_messages) * @param value The value to fill %s. */ -void clif_msgtable_str(struct map_session_data *sd, uint16 msg_id, const char *value) +void clif_msgtable_str(struct map_session_data *sd, enum clif_messages msg_id, const char *value) { int message_len; int len; @@ -9270,7 +9270,7 @@ void clif_msgtable_str(struct map_session_data *sd, uint16 msg_id, const char *v * @param msg_id msgstringtable message index, 0-based (@see enum clif_messages) * @param color The color to use */ -void clif_msgtable_color(struct map_session_data *sd, uint16 msg_id, uint32 color) +void clif_msgtable_color(struct map_session_data *sd, enum clif_messages msg_id, uint32 color) { struct PACKET_ZC_MSG_COLOR p; diff --git a/src/map/clif.h b/src/map/clif.h index 58eb6b357..68289350e 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -917,11 +917,11 @@ struct clif_interface { void (*messagecolor_self) (int fd, uint32 color, const char *msg); void (*messagecolor) (struct block_list* bl, uint32 color, const char* msg); void (*disp_overhead) (struct block_list *bl, const char* mes); - void (*msgtable) (struct map_session_data* sd, unsigned short msg_id); - void (*msgtable_num) (struct map_session_data *sd, unsigned short msg_id, int value); - void (*msgtable_skill) (struct map_session_data *sd, uint16 skill_id, int msg_id); - void (*msgtable_str) (struct map_session_data *sd, uint16 msg_id, const char *value); - void (*msgtable_color) (struct map_session_data *sd, uint16 msg_id, uint32 color); + void (*msgtable) (struct map_session_data* sd, enum clif_messages msg_id); + void (*msgtable_num) (struct map_session_data *sd, enum clif_messages msg_id, int value); + void (*msgtable_skill) (struct map_session_data *sd, uint16 skill_id, enum clif_messages msg_id); + void (*msgtable_str) (struct map_session_data *sd, enum clif_messages, const char *value); + void (*msgtable_color) (struct map_session_data *sd, enum clif_messages, uint32 color); void (*message) (const int fd, const char* mes); void (*messageln) (const int fd, const char* mes); /* message+s(printf) */ |