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:
Gregor Richards 2016-09-22 21:56:19 -04:00
parent f0facb5463
commit 65e308c92d

View File

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