summaryrefslogtreecommitdiff
path: root/src/map/clif.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-04-20 17:06:18 +0200
committerHaru <haru@dotalux.com>2016-04-23 19:09:33 +0200
commitd7ffa6adbcf4800821fe3f961513952450d06f98 (patch)
treef6565bf5ae7e0d2d46a42dc734c83b9adb7b6abe /src/map/clif.h
parente4feddf5198f1c9d45a6c34a95b251df773ab6db (diff)
downloadhercules-d7ffa6adbcf4800821fe3f961513952450d06f98.tar.gz
hercules-d7ffa6adbcf4800821fe3f961513952450d06f98.tar.bz2
hercules-d7ffa6adbcf4800821fe3f961513952450d06f98.tar.xz
hercules-d7ffa6adbcf4800821fe3f961513952450d06f98.zip
Removed the 'len' argument from clif_disp_onlyself() and clif->disp_message()
- The argument was redundant, since the passed value is always the same as the passed string's length (it doesn't make sense otherwise). The argument is implicit now. Less typing and less errors. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.h')
-rw-r--r--src/map/clif.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.h b/src/map/clif.h
index 534f04ed7..7c6516871 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -60,7 +60,7 @@ struct view_data;
**/
#define packet_len(cmd) packet_db[cmd].len
#define clif_menuskill_clear(sd) ((sd)->menuskill_id = (sd)->menuskill_val = (sd)->menuskill_val2 = 0)
-#define clif_disp_onlyself(sd,mes,len) clif->disp_message( &(sd)->bl, (mes), (len), SELF )
+#define clif_disp_onlyself(sd, mes) clif->disp_message(&(sd)->bl, (mes), SELF)
#define MAX_ROULETTE_LEVEL 7 /** client-defined value **/
#define MAX_ROULETTE_COLUMNS 9 /** client-defined value **/
#define RGB2BGR(c) (((c) & 0x0000FF) << 16 | ((c) & 0x00FF00) | ((c) & 0xFF0000) >> 16)
@@ -843,7 +843,7 @@ struct clif_interface {
void (*changechatstatus) (struct chat_data* cd);
void (*wis_message) (int fd, const char* nick, const char* mes, size_t mes_len);
void (*wis_end) (int fd, int flag);
- void (*disp_message) (struct block_list* src, const char* mes, size_t len, enum send_target target);
+ void (*disp_message) (struct block_list *src, const char *mes, enum send_target target);
void (*broadcast) (struct block_list *bl, const char *mes, int len, int type, enum send_target target);
void (*broadcast2) (struct block_list *bl, const char *mes, int len, unsigned int fontColor, short fontType, short fontSize, short fontAlign, short fontY, enum send_target target);
void (*messagecolor_self) (int fd, uint32 color, const char *msg);