Don't request hole punch to self, and don't register local server for hole punching

This commit is contained in:
James R 2020-11-12 17:31:16 -08:00
parent b5086b848b
commit 307cdf7039

View file

@ -1909,6 +1909,7 @@ static void SendAskInfo(INT32 node)
// our address to the host, it'll be able to speak to us.
HSendPacket(node, false, 0, sizeof (askinfo_pak));
if (node != 0 && node != BROADCASTADDR)
I_NetRequestHolePunch();
}
@ -5774,7 +5775,7 @@ FILESTAMP
MasterClient_Ticker();
#endif
if (serverrunning)
if (netgame && serverrunning)
{
RenewHolePunch();
}
@ -5838,7 +5839,7 @@ FILESTAMP
MasterClient_Ticker(); // Acking the Master Server
#endif
if (serverrunning)
if (netgame && serverrunning)
{
RenewHolePunch();
}