revert change.

tried to circumvent that it reports a user joining twice but its not a big deal since only one connection is used.
its a part of nat traversal since both sides are required to try and communicate to allow for a connection.
This commit is contained in:
Jamie Meyer 2023-07-27 05:47:51 +02:00 committed by GitHub
parent bf9197200d
commit 271748f768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ void Netplay::HandleEnetEvent(const ENetEvent* event)
return; return;
} }
if (IsHost() && GetPlayerIdForPeer(event->peer) < 0) if (IsHost())
HandlePeerConnectionAsHost(event->peer); HandlePeerConnectionAsHost(event->peer);
else else
HandlePeerConnectionAsNonHost(event->peer, static_cast<s32>(event->data)); HandlePeerConnectionAsNonHost(event->peer, static_cast<s32>(event->data));