Address comments from review #1

This commit is contained in:
Diavolo 2021-09-13 21:36:48 +02:00
parent 5c3ea03ee9
commit 4f1e68a285
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
2 changed files with 4 additions and 0 deletions

View File

@ -346,6 +346,8 @@ namespace Components
{
if (client->reliableAcknowledge < 0)
{
Logger::Print("Negative reliableAcknowledge from %s - cl->reliableSequence is %i, reliableAcknowledge is %i\n",
client->name, client->reliableSequence, client->reliableAcknowledge);
client->reliableAcknowledge = client->reliableSequence;
Network::SendCommand(Game::NS_SERVER, client->netchan.remoteAddress, "error", "EXE_LOSTRELIABLECOMMANDS");
return;

View File

@ -4220,6 +4220,8 @@ namespace Game
char __pad0[0x5E0];
};
static_assert(sizeof(netProfileInfo_t) == 0x5E0);
struct netchan_t
{
int outgoingSequence;