mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
Fix update_unread_ptr to handle the case of only slaves connected
This commit is contained in:
parent
e70ee045bf
commit
d1ab288d73
@ -69,8 +69,16 @@ void netplay_update_unread_ptr(netplay_t *netplay)
|
||||
new_unread_frame_count = netplay->server_frame_count;
|
||||
}
|
||||
|
||||
netplay->unread_ptr = new_unread_ptr;
|
||||
netplay->unread_frame_count = new_unread_frame_count;
|
||||
if (new_unread_frame_count != (uint32_t) -1)
|
||||
{
|
||||
netplay->unread_ptr = new_unread_ptr;
|
||||
netplay->unread_frame_count = new_unread_frame_count;
|
||||
}
|
||||
else
|
||||
{
|
||||
netplay->unread_ptr = netplay->self_ptr;
|
||||
netplay->unread_frame_count = netplay->self_frame_count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user