From dcca2f813111adb142025f83e951088a5461b44b Mon Sep 17 00:00:00 2001 From: radius Date: Fri, 20 Jan 2017 14:33:57 -0500 Subject: [PATCH] only announce if host --- network/netplay/netplay_frontend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index 715fec24bf..7157f2375e 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -28,9 +28,9 @@ #include "../../input/input_driver.h" #include "../../runloop.h" -#include "tasks/tasks_internal.h" +#include "../../tasks/tasks_internal.h" #include -#include "file_path_special.h" +#include "../../file_path_special.h" #include "paths.h" /* Only used before init_netplay */ @@ -553,7 +553,7 @@ bool netplay_pre_frame(netplay_t *netplay) { bool sync_stalled; reannounce ++; - if (reannounce % 3600 == 0) + if (netplay->is_server && (reannounce % 3600 == 0)) netplay_announce(); retro_assert(netplay);