diff options
author | Haru <haru@dotalux.com> | 2016-04-20 15:40:19 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-04-23 19:08:11 +0200 |
commit | e4feddf5198f1c9d45a6c34a95b251df773ab6db (patch) | |
tree | 7d6fb02f933f6772851f375f7c176bd2f32a617f /src/map/mob.c | |
parent | dc23fd3ee6029efe881fa73ed9f4f85e4548bc59 (diff) | |
download | hercules-e4feddf5198f1c9d45a6c34a95b251df773ab6db.tar.gz hercules-e4feddf5198f1c9d45a6c34a95b251df773ab6db.tar.bz2 hercules-e4feddf5198f1c9d45a6c34a95b251df773ab6db.tar.xz hercules-e4feddf5198f1c9d45a6c34a95b251df773ab6db.zip |
Corrected the type of the 'length' argument of various broadcast-related functions
- Variable types were changed to int
- Corrects several warnings in VS2015
- Affected functions: `clif->broadcast()`, `clif->broadcast2()`,
`intif->broadcast()`, `intif->broadcast2()`
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 6a2fc8304..36901b03b 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2447,7 +2447,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) { char message[128]; sprintf (message, msg_txt(541), mvp_sd->status.name, md->name, it->jname, (float)drop_rate/100); //MSG: "'%s' won %s's %s (chance: %0.02f%%)" - intif->broadcast(message, strlen(message)+1, BC_DEFAULT); + intif->broadcast(message, (int)strlen(message)+1, BC_DEFAULT); } /* heres the thing we got the feature set up however we're still discussing how to best define the ids, @@ -2600,7 +2600,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) { char message[128]; sprintf(message, msg_txt(541), mvp_sd->status.name, md->name, data->jname, rate/100.); //MSG: "'%s' won %s's %s (chance: %0.02f%%)" - intif->broadcast(message, strlen(message)+1, BC_DEFAULT); + intif->broadcast(message, (int)strlen(message)+1, BC_DEFAULT); } if((temp = pc->additem(mvp_sd,&item,1,LOG_TYPE_PICKDROP_PLAYER)) != 0) { |