From ece59e5e63724542ee8fa98e25d01e4a1d428592 Mon Sep 17 00:00:00 2001 From: Skull Merlin <86374920+skkuull@users.noreply.github.com> Date: Sun, 5 Jun 2022 23:25:06 +0300 Subject: [PATCH] show date & time when debug --- src/client/component/branding.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/component/branding.cpp b/src/client/component/branding.cpp index f8eedd66..cbbcb0eb 100644 --- a/src/client/component/branding.cpp +++ b/src/client/component/branding.cpp @@ -33,8 +33,13 @@ namespace branding const auto font = game::R_RegisterFont("fonts/fira_mono_bold.ttf", 20); if (font) { +#ifdef DEBUG game::R_AddCmdDrawText("H1-Mod: " VERSION " (" __DATE__ " " __TIME__ ")", 0x7FFFFFFF, font, 10.f, 5.f + static_cast(font->pixelHeight), 1.f, 1.f, 0.0f, color, 0); +#else + game::R_AddCmdDrawText("H1-Mod: " VERSION, 0x7FFFFFFF, font, 10.f, + 5.f + static_cast(font->pixelHeight), 1.f, 1.f, 0.0f, color, 0); +#endif } } }