mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed last digit in current time
This commit is contained in:
parent
8824d41011
commit
1f5849f6dc
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue