mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
LOAD_SAVESTATE can't use player frame timing from a server that's not playing
This commit is contained in:
parent
095c97d053
commit
ee55e2d783
@ -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…
Reference in New Issue
Block a user