mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-02 19:00:58 +00:00
Detect runt client packets quicker.
This commit is contained in:
parent
66e08b1e0f
commit
5385056a9e
1 changed files with 13 additions and 7 deletions
|
@ -1278,10 +1278,10 @@ SV_ReadPackets
|
||||||
*/
|
*/
|
||||||
void SV_ReadPackets (void)
|
void SV_ReadPackets (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
client_t *cl;
|
client_t *cl;
|
||||||
qboolean good;
|
qboolean good;
|
||||||
int qport;
|
int qport;
|
||||||
|
|
||||||
good = false;
|
good = false;
|
||||||
while (NET_GetPacket ())
|
while (NET_GetPacket ())
|
||||||
|
@ -1299,6 +1299,12 @@ void SV_ReadPackets (void)
|
||||||
continue;
|
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
|
// read the qport out of the message so we can fix up
|
||||||
// stupid address translating routers
|
// stupid address translating routers
|
||||||
MSG_BeginReading ();
|
MSG_BeginReading ();
|
||||||
|
|
Loading…
Reference in a new issue