mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
Only show freeze indication once when still frozen
This commit is contained in:
parent
83dd6ddf83
commit
605bd0f81c
|
@ -1580,9 +1580,9 @@ void CCharacter::DDRaceTick()
|
||||||
|
|
||||||
if(m_FreezeTime > 0 || m_FreezeTime == -1)
|
if(m_FreezeTime > 0 || m_FreezeTime == -1)
|
||||||
{
|
{
|
||||||
if (m_FreezeTime % Server()->TickSpeed() == 0 || m_FreezeTime == -1)
|
if (m_FreezeTime % Server()->TickSpeed() == Server()->TickSpeed() - 1 || m_FreezeTime == -1)
|
||||||
{
|
{
|
||||||
GameServer()->CreateDamageInd(m_Pos, 0, m_FreezeTime / Server()->TickSpeed(), Teams()->TeamMask(Team(), -1, m_pPlayer->GetCID()));
|
GameServer()->CreateDamageInd(m_Pos, 0, (m_FreezeTime + 1) / Server()->TickSpeed(), Teams()->TeamMask(Team(), -1, m_pPlayer->GetCID()));
|
||||||
}
|
}
|
||||||
if(m_FreezeTime > 0)
|
if(m_FreezeTime > 0)
|
||||||
m_FreezeTime--;
|
m_FreezeTime--;
|
||||||
|
|
Loading…
Reference in a new issue