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:
parent
bf9197200d
commit
271748f768
|
@ -663,7 +663,7 @@ void Netplay::HandleEnetEvent(const ENetEvent* event)
|
|||
return;
|
||||
}
|
||||
|
||||
if (IsHost() && GetPlayerIdForPeer(event->peer) < 0)
|
||||
if (IsHost())
|
||||
HandlePeerConnectionAsHost(event->peer);
|
||||
else
|
||||
HandlePeerConnectionAsNonHost(event->peer, static_cast<s32>(event->data));
|
||||
|
|
Loading…
Reference in New Issue