From 39067a83dfc2d3646e3551305d5b157b0617968e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 23 Dec 2018 13:12:18 +0100 Subject: [PATCH] racing:: fixed racetimeformat, wrong digit was bounded to <6 --- racing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/racing.cpp b/racing.cpp index 2bb1d5aa..1871be7e 100644 --- a/racing.cpp +++ b/racing.cpp @@ -742,7 +742,7 @@ string racetimeformat(int t) { bool minus = (t < 0); if(t < 0) t = -t; while(t || digits < 6) { - int mby = (digits == 5 ? 6 : 10); + int mby = (digits == 4 ? 6 : 10); times = char('0'+(t%mby)) + times; t /= mby; digits++; if(digits == 3) times = "." + times;