LOAD_SAVESTATE can't use player frame timing from a server that's not playing

This commit is contained in:
Gregor Richards 2017-01-02 18:56:08 -05:00
parent 095c97d053
commit ee55e2d783

View File

@ -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);