Initialize CCharacter::m_NumInputs of game server

This commit is contained in:
Zwelf 2022-04-17 23:04:54 +02:00
parent d4dcaa2471
commit 887e6673fe

View file

@ -58,6 +58,7 @@ bool CCharacter::Spawn(CPlayer *pPlayer, vec2 Pos)
mem_zero(&m_LatestPrevPrevInput, sizeof(m_LatestPrevPrevInput));
m_LatestPrevPrevInput.m_TargetY = -1;
m_NumInputs = 0;
m_SpawnTick = Server()->Tick();
m_WeaponChangeTick = Server()->Tick();
Antibot()->OnSpawn(m_pPlayer->GetCID());