mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Remote state load bugfix: Don't skip an input frame
This commit is contained in:
parent
5f90f072ba
commit
79eba578ff
@ -342,8 +342,13 @@ static bool netplay_get_cmd(netplay_t *netplay)
|
|||||||
/* Skip ahead if it's past where we are */
|
/* Skip ahead if it's past where we are */
|
||||||
if (frame > netplay->self_frame_count)
|
if (frame > netplay->self_frame_count)
|
||||||
{
|
{
|
||||||
netplay->self_ptr = netplay->read_ptr;
|
/* This is squirrely: We need to assure that when we advance the
|
||||||
netplay->self_frame_count = frame;
|
* frame in post_frame, THEN we're referring to the frame to
|
||||||
|
* load into. If we refer directly to read_ptr, then we'll end
|
||||||
|
* up never reading the input for read_frame_count itself, which
|
||||||
|
* will make the other side unhappy. */
|
||||||
|
netplay->self_ptr = PREV_PTR(netplay->read_ptr);
|
||||||
|
netplay->self_frame_count = frame - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* And force rewind to it */
|
/* And force rewind to it */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user