mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
Explicitly set m_LastSetTeam to zero
It is compared to 0 in gamecontext.cpp but it is never explicitly set to 0. ```C++ if(pPlayer->GetTeam() == pMsg->m_Team || (g_Config.m_SvSpamprotection && pPlayer->m_LastSetTeam && pPlayer->m_LastSetTeam + Server()->TickSpeed() * g_Config.m_SvTeamChangeDelay > Server()->Tick())) return; ```
This commit is contained in:
parent
e8798a9e2f
commit
547a9a0285
|
@ -48,6 +48,7 @@ void CPlayer::Reset()
|
|||
m_SpectatorId = SPEC_FREEVIEW;
|
||||
m_LastActionTick = Server()->Tick();
|
||||
m_TeamChangeTick = Server()->Tick();
|
||||
m_LastSetTeam = 0;
|
||||
m_LastInvited = 0;
|
||||
m_WeakHookSpawn = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue