DEADSOFTWARE

gl: draw game time
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Tue, 26 Jul 2022 21:50:22 +0000 (00:50 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 9 Jun 2023 09:03:32 +0000 (12:03 +0300)
src/game/renders/opengl/r_render.pas

index f9c0024381a16880c14abfc6562dacba33435386..a11ca7fc02fbf4843d4b051c25532c59a54a7165 100644 (file)
@@ -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