diff options
author | Haru <haru@dotalux.com> | 2016-04-20 17:06:18 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-04-23 19:09:33 +0200 |
commit | d7ffa6adbcf4800821fe3f961513952450d06f98 (patch) | |
tree | f6565bf5ae7e0d2d46a42dc734c83b9adb7b6abe /src/map/mob.c | |
parent | e4feddf5198f1c9d45a6c34a95b251df773ab6db (diff) | |
download | hercules-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/mob.c')
-rw-r--r-- | src/map/mob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 36901b03b..19fee52a5 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -421,7 +421,7 @@ bool mob_ksprotected(struct block_list *src, struct block_list *target) { if( DIFF_TICK(sd->ks_floodprotect_tick, tick) <= 0 ) { sprintf(output, "[KS Warning!! - Owner : %s]", pl_sd->status.name); - clif_disp_onlyself(sd, output, strlen(output)); + clif_disp_onlyself(sd, output); sd->ks_floodprotect_tick = tick + 2000; } @@ -430,7 +430,7 @@ bool mob_ksprotected(struct block_list *src, struct block_list *target) { if( DIFF_TICK(pl_sd->ks_floodprotect_tick, tick) <= 0 ) { sprintf(output, "[Watch out! %s is trying to KS you!]", sd->status.name); - clif_disp_onlyself(pl_sd, output, strlen(output)); + clif_disp_onlyself(pl_sd, output); pl_sd->ks_floodprotect_tick = tick + 2000; } |