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:
Monster Iestyn 2017-05-27 15:09:14 -04:00
commit 7294e15ec6

View file

@ -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: