mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Reset player flip state when we lose Netplay connection
This fixes a bug whereby reconnections would be out of sync due to the flip state of the server and client being different. The server now resets its flip state on disconnect.
This commit is contained in:
parent
f0facb5463
commit
65e308c92d
@ -77,7 +77,11 @@ static void hangup(netplay_t *netplay)
|
||||
}
|
||||
|
||||
netplay->has_connection = false;
|
||||
|
||||
/* Reset things that will behave oddly if we get a new connection */
|
||||
netplay->remote_paused = false;
|
||||
netplay->flip = false;
|
||||
netplay->flip_frame = 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user