mirror of
https://github.com/libretro/Mesen.git
synced 2025-01-23 17:44:34 +00:00
Netplay: Fixed client input data being ignored by server
This commit is contained in:
parent
9bcde89188
commit
9b070704b0
@ -142,15 +142,17 @@ void GameServerConnection::ProcessMessage(NetMessage* message)
|
||||
break;
|
||||
|
||||
case MessageType::InputData:
|
||||
if(_handshakeCompleted) {
|
||||
break;
|
||||
if(!_handshakeCompleted) {
|
||||
SendForceDisconnectMessage("Handshake has not been completed - invalid packet");
|
||||
return;
|
||||
}
|
||||
PushState(((InputDataMessage*)message)->GetInputState());
|
||||
break;
|
||||
|
||||
case MessageType::SelectController:
|
||||
if(_handshakeCompleted) {
|
||||
break;
|
||||
if(!_handshakeCompleted) {
|
||||
SendForceDisconnectMessage("Handshake has not been completed - invalid packet");
|
||||
return;
|
||||
}
|
||||
SelectControllerPort(((SelectControllerMessage*)message)->GetPortNumber());
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user