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/pc.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/pc.c')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 1c7c72944..3b436105f 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5341,7 +5341,7 @@ int pc_steal_item(struct map_session_data *sd,struct block_list *bl, uint16 skil char message[128]; sprintf (message, msg_txt(542), sd->status.name, md->db->jname, data->jname, (float)md->db->dropitem[i].p / 100); //MSG: "'%s' stole %s's %s (chance: %0.02f%%)" - intif->broadcast(message, strlen(message)+1, BC_DEFAULT); + intif->broadcast(message, (int)strlen(message)+1, BC_DEFAULT); } return 1; } @@ -10335,7 +10335,7 @@ int map_day_timer(int tid, int64 tick, int id, intptr_t data) { map->night_flag = 0; // 0=day, 1=night [Yor] map->foreachpc(pc->daynight_timer_sub); safestrncpy(tmp_soutput, (data == 0) ? msg_txt(502) : msg_txt(60), sizeof(tmp_soutput)); // The day has arrived! - intif->broadcast(tmp_soutput, strlen(tmp_soutput) + 1, BC_DEFAULT); + intif->broadcast(tmp_soutput, (int)strlen(tmp_soutput) + 1, BC_DEFAULT); return 0; } @@ -10355,7 +10355,7 @@ int map_night_timer(int tid, int64 tick, int id, intptr_t data) { map->night_flag = 1; // 0=day, 1=night [Yor] map->foreachpc(pc->daynight_timer_sub); safestrncpy(tmp_soutput, (data == 0) ? msg_txt(503) : msg_txt(59), sizeof(tmp_soutput)); // The night has fallen... - intif->broadcast(tmp_soutput, strlen(tmp_soutput) + 1, BC_DEFAULT); + intif->broadcast(tmp_soutput, (int)strlen(tmp_soutput) + 1, BC_DEFAULT); return 0; } |