From 271748f7688a9bc213e06ee930693a7fe53092a6 Mon Sep 17 00:00:00 2001 From: Jamie Meyer <45072324+HeatXD@users.noreply.github.com> Date: Thu, 27 Jul 2023 05:47:51 +0200 Subject: [PATCH] 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. --- src/core/netplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/netplay.cpp b/src/core/netplay.cpp index 4a52124c3..2433fd498 100644 --- a/src/core/netplay.cpp +++ b/src/core/netplay.cpp @@ -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(event->data));