mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Center timer in HUD (fixes #4438)
This commit is contained in:
parent
d862207a73
commit
9965007fa0
|
@ -127,8 +127,7 @@ void CHud::RenderGameTimer()
|
|||
|
||||
str_time(Time * 100, TIME_DAYS, aBuf, sizeof(aBuf));
|
||||
float FontSize = 10.0f;
|
||||
float w;
|
||||
w = TextRender()->TextWidth(0, 12,
|
||||
float w = TextRender()->TextWidth(0, FontSize,
|
||||
Time >= 3600 * 24 ? "00d 00:00:00" : Time >= 3600 ? "00:00:00" : "00:00",
|
||||
-1, -1.0f);
|
||||
// last 60 sec red, last 10 sec blink
|
||||
|
|
Loading…
Reference in a new issue