mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 03:10:14 +00:00
Only allow clients to load state if there's no further synchronization
This commit is contained in:
parent
70d04ec6a5
commit
4e01481b39
@ -882,6 +882,11 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
||||
if (connection->mode != NETPLAY_CONNECTION_PLAYING)
|
||||
return netplay_cmd_nak(netplay, connection);
|
||||
|
||||
/* We only allow players to load state if we're in a simple
|
||||
* two-player situation */
|
||||
if (netplay->is_server && netplay->connections_size > 1)
|
||||
return netplay_cmd_nak(netplay, connection);
|
||||
|
||||
/* There is a subtlty in whether the load comes before or after the
|
||||
* current frame:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user