mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
Move HandleConnect to the same place as other packets
This commit is contained in:
parent
18dba65f17
commit
6bba2f16c0
1 changed files with 4 additions and 6 deletions
|
@ -3916,6 +3916,10 @@ static void HandlePacketFromAwayNode(SINT8 node)
|
|||
Net_CloseConnection(node);
|
||||
break;
|
||||
|
||||
case PT_CLIENTJOIN:
|
||||
if (server)
|
||||
HandleConnect(node);
|
||||
break;
|
||||
case PT_JOINCHALLENGE:
|
||||
if (server && serverrunning)
|
||||
{ // But wait I thought I'm the server?
|
||||
|
@ -4592,12 +4596,6 @@ FILESTAMP
|
|||
while (HGetPacket())
|
||||
{
|
||||
node = (SINT8)doomcom->remotenode;
|
||||
|
||||
if (netbuffer->packettype == PT_CLIENTJOIN && server)
|
||||
{
|
||||
HandleConnect(node);
|
||||
continue;
|
||||
}
|
||||
if (node == servernode && client && cl_mode != CL_SEARCHING)
|
||||
{
|
||||
if (netbuffer->packettype == PT_SERVERSHUTDOWN)
|
||||
|
|
Loading…
Reference in a new issue