Fix clientside Lag after tick 1

This commit is contained in:
BenCat07 2018-01-25 20:00:34 +01:00 committed by GitHub
parent f7ca64f38b
commit f498062d45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,11 +213,10 @@ void CreateMove()
if (!amount)
return;
// Modifying command_number and lastoutgoingcommand turned out to be useless
// cmd->command_number += amount;
//*(int*)((unsigned)g_IBaseClientState + offsets::lastoutgoingcommand()) +=
// amount;
cmd->command_number += amount;
*(int*)((unsigned)g_IBaseClientState + offsets::lastoutgoingcommand()) +=
amount;
INetChannel *ch = (INetChannel *) g_IEngine->GetNetChannelInfo();
int &m_nOutSequenceNr =