mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #4355 from GregorR/netplay-load-savestate-server-not-playing
LOAD_SAVESTATE can't use player frame timing from a server that's not playing
This commit is contained in:
commit
6bd212a6ce
@ -1084,7 +1084,8 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
||||
}
|
||||
frame = ntohl(frame);
|
||||
|
||||
if (frame != netplay->read_frame_count[connection->player])
|
||||
if ((netplay->is_server && frame != netplay->read_frame_count[connection->player]) ||
|
||||
(!netplay->is_server && frame != netplay->server_frame_count))
|
||||
{
|
||||
RARCH_ERR("CMD_LOAD_SAVESTATE loading a state out of order!\n");
|
||||
return netplay_cmd_nak(netplay, connection);
|
||||
|
Loading…
x
Reference in New Issue
Block a user