fixed last digit in current time

This commit is contained in:
SushiTee 2010-09-22 18:16:05 +02:00 committed by GreYFoXGTi
parent 8824d41011
commit 1f5849f6dc

View file

@ -422,7 +422,13 @@ void CHud::RenderTime()
TextRender()->TextColor(1,1,1,1); TextRender()->TextColor(1,1,1,1);
} }
} }
m_RaceTick+=100/Client()->GameTickSpeed();
static int LastChangeTick = 0;
if(LastChangeTick != Client()->PredGameTick())
{
m_RaceTick += 100/Client()->GameTickSpeed();
LastChangeTick = Client()->PredGameTick();
}
if(m_RaceTick >= 100) if(m_RaceTick >= 100)
m_RaceTick = 0; m_RaceTick = 0;