Detect runt client packets quicker.

This commit is contained in:
Dabb 2000-08-14 13:41:05 +00:00
parent 66e08b1e0f
commit 5385056a9e

View file

@ -1278,10 +1278,10 @@ SV_ReadPackets
*/
void SV_ReadPackets (void)
{
int i;
int i;
client_t *cl;
qboolean good;
int qport;
int qport;
good = false;
while (NET_GetPacket ())
@ -1299,6 +1299,12 @@ void SV_ReadPackets (void)
continue;
}
if (net_message.cursize < 11)
{
Con_Printf ("%s: Runt packet\n",NET_AdrToString(net_from));
continue;
}
// read the qport out of the message so we can fix up
// stupid address translating routers
MSG_BeginReading ();