Added CRC to packets

Verify that data is correctly ordered and reject packets that aren't. Also generates a random game id to ensure packets are coming from legitimate clients.
This commit is contained in:
Boondorl 2025-04-11 14:24:31 -04:00 committed by Ricardo Luís Vaz Silva
commit 7877018471
3 changed files with 67 additions and 32 deletions

View file

@ -1695,9 +1695,6 @@ bool D_CheckNetGame()
if (!I_InitNetwork())
return false;
if (GameID != DEFAULT_GAME_ID)
I_FatalError("Invalid id set for network buffer");
if (Args->CheckParm("-extratic"))
net_extratic = true;