diff --git a/src/hud_elements.cpp b/src/hud_elements.cpp index d278981a..c4e4f970 100644 --- a/src/hud_elements.cpp +++ b/src/hud_elements.cpp @@ -1074,11 +1074,11 @@ void HudElements::duration(){ int minutes = std::chrono::duration_cast(elapsedTime).count() % 60; int seconds = std::chrono::duration_cast(elapsedTime).count() % 60; if (hours > 0) - right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width, "%i:%i:%i", hours, minutes, seconds); + right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width, "%02d:%02d:%02d", hours, minutes, seconds); else if (minutes > 0) - right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width, "%i:%i", minutes, seconds); + right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width, "%02d:%02d", minutes, seconds); else - right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width, "%i", seconds); + right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width, "%02d", seconds); ImGui::PopFont(); }