From 561eb42c84eaaf3a3211462eb0f01ffd3b33abf6 Mon Sep 17 00:00:00 2001 From: Gregor Richards Date: Wed, 18 Jan 2017 17:07:25 -0500 Subject: [PATCH] Don't enable input latency if we're not connected --- network/netplay/netplay_frontend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index 45b0189d7a..5a532a0137 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -275,7 +275,9 @@ static bool netplay_poll(void) netplay_update_unread_ptr(netplay_data); /* Have we not reat enough latency frames? */ - if (netplay_data->run_frame_count + NETPLAY_INPUT_LATENCY_FRAMES > netplay_data->input_frame_count) + if (netplay_data->self_mode == NETPLAY_CONNECTION_PLAYING && + netplay_data->connected_players && + netplay_data->run_frame_count + NETPLAY_INPUT_LATENCY_FRAMES > netplay_data->input_frame_count) { netplay_data->stall = NETPLAY_STALL_INPUT_LATENCY; netplay_data->stall_time = 0;