diff options
author | Ibrahem Hossam <hemagx2@gmail.com> | 2016-04-24 13:13:19 +0200 |
---|---|---|
committer | Ibrahem Hossam <hemagx2@gmail.com> | 2016-04-24 13:13:19 +0200 |
commit | 31e27a130676e3e416b583bb947f9dd87efdce81 (patch) | |
tree | f91422fa8b0ecd93ccb15720bc15a9b9b839cfd2 /src/map/mob.c | |
parent | 3ccc681a4bebd5b91b96c1c7059fdec91f2b5d16 (diff) | |
parent | 9fdb4567ab8af97004d7c6dcd35f27f788b0bb15 (diff) | |
download | hercules-31e27a130676e3e416b583bb947f9dd87efdce81.tar.gz hercules-31e27a130676e3e416b583bb947f9dd87efdce81.tar.bz2 hercules-31e27a130676e3e416b583bb947f9dd87efdce81.tar.xz hercules-31e27a130676e3e416b583bb947f9dd87efdce81.zip |
Merge pull request #1264 from HerculesWS/vs2015
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 6a2fc8304..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; } @@ -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) { |