Remove an incorrect double-check

Netplay sync incorrectly checked whether the replay pointer was behind
the unread pointer twice, when in the second check it should only have
been checking if it was behind the current execution pointer. Because of
how resimulation works with device sharing, I THINK this could affect
sync. Even if it can't, it's wrong.
This commit is contained in:
Gregor Richards 2018-03-03 23:03:35 -05:00
parent 1d1acc8940
commit a39bff6e03

View File

@ -768,8 +768,7 @@ void netplay_sync_post_frame(netplay_t *netplay, bool stalled)
/* Now replay the real input if we've gotten ahead of it */
if (netplay->force_rewind ||
(netplay->replay_frame_count < netplay->unread_frame_count &&
netplay->replay_frame_count < netplay->run_frame_count))
netplay->replay_frame_count < netplay->run_frame_count)
{
retro_ctx_serialize_info_t serial_info;