diff options
author | Haru <haru@dotalux.com> | 2019-08-25 17:55:31 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2019-08-26 00:29:04 +0200 |
commit | 0ef788e46f678e546ec28b602dcfeeb359d0417c (patch) | |
tree | 8356f911f50edd9e7a893e82963e4b23c0915548 /src/map/pc.c | |
parent | ab2b8254e88ea098b34b9127f1571a14ad0e692a (diff) | |
download | hercules-0ef788e46f678e546ec28b602dcfeeb359d0417c.tar.gz hercules-0ef788e46f678e546ec28b602dcfeeb359d0417c.tar.bz2 hercules-0ef788e46f678e546ec28b602dcfeeb359d0417c.tar.xz hercules-0ef788e46f678e546ec28b602dcfeeb359d0417c.zip |
Remove round-trip to the inter-server for the broadcast messages
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 827619be8..8c7663d54 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -10990,7 +10990,7 @@ static 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, (int)strlen(tmp_soutput) + 1, BC_DEFAULT); + clif->broadcast(NULL, tmp_soutput, (int)strlen(tmp_soutput) + 1, BC_DEFAULT, ALL_CLIENT); return 0; } @@ -11011,7 +11011,7 @@ static 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, (int)strlen(tmp_soutput) + 1, BC_DEFAULT); + clif->broadcast(NULL, tmp_soutput, (int)strlen(tmp_soutput) + 1, BC_DEFAULT, ALL_CLIENT); return 0; } |