Only show freeze indication once when still frozen

This commit is contained in:
def 2013-12-26 19:46:44 +01:00
parent 83dd6ddf83
commit 605bd0f81c

View file

@ -1580,9 +1580,9 @@ void CCharacter::DDRaceTick()
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)
m_FreezeTime--;