DEADSOFTWARE

gl: draw game time
[d2df-sdl.git] / 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