fix server lagging resulting from too many ConMsgs due to packet spam ("Invalid split packet length %i\n")

This commit is contained in:
hubdom 2021-06-03 00:44:32 +02:00
parent deca47cb54
commit b523c933ee

View File

@ -207,13 +207,21 @@ static struct SrcdsPatch
(unsigned char *)"\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90\x90",
0, 0, 0, false
},
// 10: fix server lagging resulting from too many ConMsgs due to packet spam
// 10: fix server lagging resulting from too many ConMsgs due to packet spam ("%s:corrupted packet %i at %i\n")
{
"_ZN8CNetChan19ProcessPacketHeaderEP11netpacket_s",
(unsigned char *)"\x89\x44\x24\x04\x89\x5C\x24\x0C\x89\x54\x24\x08\xE8\xE0\xAB\x22\x00",
"xxxxxxxxxxxxx????",
(unsigned char *)"\x89\x44\x24\x04\x89\x5C\x24\x0C\x89\x54\x24\x08\x90\x90\x90\x90\x90",
0, 0, 0, true
},
// 11: fix server lagging resulting from too many ConMsgs due to packet spam ("Invalid split packet length %i\n")
{
"_Z11NET_GetLongiP11netpacket_s",
(unsigned char *)"\xE8\xFE\x20\x22\x00\x89\xF8\x8B\x5D\xF4\x8B\x75\xF8\x8B\x7D\xFC",
"x????xxxxxxxxxxx",
(unsigned char *)"\x90\x90\x90\x90\x90\x89\xF8\x8B\x5D\xF4\x8B\x75\xF8\x8B\x7D\xFC",
0, 0, 0, true
}
};