mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Some more things I overlooked in this fix
This commit is contained in:
parent
247ed56e17
commit
28444c12dd
1 changed files with 10 additions and 6 deletions
|
@ -3405,14 +3405,16 @@ static void HandlePacketFromAwayNode(SINT8 node)
|
||||||
switch (netbuffer->packettype)
|
switch (netbuffer->packettype)
|
||||||
{
|
{
|
||||||
case PT_ASKINFOVIAMS:
|
case PT_ASKINFOVIAMS:
|
||||||
if (ms_RoomId < 0) // ignore if we're not actually on the MS right now
|
|
||||||
{
|
|
||||||
Net_CloseConnection(node); // and yes, close connection
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (server && serverrunning)
|
if (server && serverrunning)
|
||||||
{
|
{
|
||||||
INT32 clientnode = I_NetMakeNode(netbuffer->u.msaskinfo.clientaddr);
|
INT32 clientnode;
|
||||||
|
if (ms_RoomId < 0) // ignore if we're not actually on the MS right now
|
||||||
|
{
|
||||||
|
Net_CloseConnection(node); // and yes, close connection
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
clientnode = I_NetMakeNode(netbuffer->u.msaskinfo.clientaddr);
|
||||||
if (clientnode != -1)
|
if (clientnode != -1)
|
||||||
{
|
{
|
||||||
SV_SendServerInfo(clientnode, (tic_t)LONG(netbuffer->u.msaskinfo.time));
|
SV_SendServerInfo(clientnode, (tic_t)LONG(netbuffer->u.msaskinfo.time));
|
||||||
|
@ -3423,6 +3425,8 @@ static void HandlePacketFromAwayNode(SINT8 node)
|
||||||
else
|
else
|
||||||
Net_CloseConnection(node); // ...unless the IP address is not valid
|
Net_CloseConnection(node); // ...unless the IP address is not valid
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
Net_CloseConnection(node); // you're not supposed to get it, so ignore it
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PT_ASKINFO:
|
case PT_ASKINFO:
|
||||||
|
|
Loading…
Reference in a new issue