mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Netplay spectator notification fix (#13409)
Fix double notification when the host switches to spectator.
This commit is contained in:
parent
689057a9b2
commit
6a100272a8
@ -7214,7 +7214,9 @@ void netplay_toggle_play_spectate(netplay_t *netplay)
|
||||
netplay->device_clients[device] &= ~(1<<netplay->self_client_num);
|
||||
|
||||
/* Announce it */
|
||||
announce_play_spectate(netplay, NULL, NETPLAY_CONNECTION_SPECTATING, 0, -1);
|
||||
if (!netplay->is_server)
|
||||
announce_play_spectate(netplay,
|
||||
NULL, NETPLAY_CONNECTION_SPECTATING, 0, -1);
|
||||
|
||||
netplay_cmd_mode(netplay, NETPLAY_CONNECTION_SPECTATING);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user