From 89aefa5014cb0dcaac0bac925dd0bd82da0f979a Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Wed, 27 Jul 2022 00:50:22 +0300 Subject: [PATCH] gl: draw game time --- src/game/renders/opengl/r_render.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/renders/opengl/r_render.pas b/src/game/renders/opengl/r_render.pas index f9c0024..a11ca7f 100644 --- a/src/game/renders/opengl/r_render.pas +++ b/src/game/renders/opengl/r_render.pas @@ -1229,7 +1229,11 @@ implementation r_Common_DrawText('UPS: ' + IntToStr(UPS), 0, 16, 255, 255, 255, 255, stdfont, TBasePoint.BP_LEFTUP); end; - // TODO gShowTime + if gGameOn and gShowTime then + begin + r_Common_DrawText(r_Common_TimeToStr(gTime), gScreenWidth - 4, gScreenHeight - 1, 255, 255, 255, 255, stdfont, TBasePoint.BP_RIGHTDOWN); + end; + // TODO draw profilers // TODO draw holmes interface -- 2.29.2