mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-09 09:40:57 +00:00
Merge branch 'ignore-askinfoviams' into 'master'
Ignore askinfoviams Turns out PT_ASKINFOVIAMS is an obsolete packet type anyway, the MS doesn't send it at all. So let's just ignore it in the netcode then. (the online page just acts like a client and sends PT_ASKINFO, and is not part of the MS itself) See merge request !191
This commit is contained in:
commit
7294e15ec6
1 changed files with 4 additions and 0 deletions
|
@ -3413,6 +3413,7 @@ static void HandlePacketFromAwayNode(SINT8 node)
|
||||||
switch (netbuffer->packettype)
|
switch (netbuffer->packettype)
|
||||||
{
|
{
|
||||||
case PT_ASKINFOVIAMS:
|
case PT_ASKINFOVIAMS:
|
||||||
|
#if 0
|
||||||
if (server && serverrunning)
|
if (server && serverrunning)
|
||||||
{
|
{
|
||||||
INT32 clientnode;
|
INT32 clientnode;
|
||||||
|
@ -3434,6 +3435,9 @@ static void HandlePacketFromAwayNode(SINT8 node)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Net_CloseConnection(node); // you're not supposed to get it, so ignore it
|
Net_CloseConnection(node); // you're not supposed to get it, so ignore it
|
||||||
|
#else
|
||||||
|
Net_CloseConnection(node);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PT_ASKINFO:
|
case PT_ASKINFO:
|
||||||
|
|
Loading…
Reference in a new issue