mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 07:12:03 +00:00
Don't request hole punch to self, and don't register local server for hole punching
This commit is contained in:
parent
b5086b848b
commit
307cdf7039
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue