mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Initialize CCharacter::m_NumInputs of game server
This commit is contained in:
parent
d4dcaa2471
commit
887e6673fe
|
@ -58,6 +58,7 @@ bool CCharacter::Spawn(CPlayer *pPlayer, vec2 Pos)
|
||||||
|
|
||||||
mem_zero(&m_LatestPrevPrevInput, sizeof(m_LatestPrevPrevInput));
|
mem_zero(&m_LatestPrevPrevInput, sizeof(m_LatestPrevPrevInput));
|
||||||
m_LatestPrevPrevInput.m_TargetY = -1;
|
m_LatestPrevPrevInput.m_TargetY = -1;
|
||||||
|
m_NumInputs = 0;
|
||||||
m_SpawnTick = Server()->Tick();
|
m_SpawnTick = Server()->Tick();
|
||||||
m_WeaponChangeTick = Server()->Tick();
|
m_WeaponChangeTick = Server()->Tick();
|
||||||
Antibot()->OnSpawn(m_pPlayer->GetCID());
|
Antibot()->OnSpawn(m_pPlayer->GetCID());
|
||||||
|
|
Loading…
Reference in a new issue