Netplay: Fixed client input data being ignored by server

This commit is contained in:
Sour 2018-06-29 00:08:48 -04:00
parent 9bcde89188
commit 9b070704b0

View File

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