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