From 7aca665d8ef301bfb04871779011d73f1ea1ea83 Mon Sep 17 00:00:00 2001 From: Miloslav Ciz Date: Mon, 2 Jun 2025 20:05:17 +0200 Subject: [PATCH] Fix timer display --- TODO.txt | 3 ++- game.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TODO.txt b/TODO.txt index c942dbd..0073aab 100644 --- a/TODO.txt +++ b/TODO.txt @@ -15,7 +15,7 @@ fuck issue trackers :D - press forward map??? :-D only when physics is frozen - make some kinda repo for world record runs? how will they submit it? - final tests: - - very long replay + - very long replay DID 1x - different resolutions KINDA DID 1x - different settings (332, POTATO, ...) - crazy shit with physics @@ -25,6 +25,7 @@ fuck issue trackers :D - valgrind, cppcheck, different compilers, optimization levels, ... - play replay from one platform on another - profiling + - replay stretching DID 1x - play all maps a lot - correct saving of replays etc. - empty and large data file diff --git a/game.h b/game.h index f7ddc92..addb0df 100644 --- a/game.h +++ b/game.h @@ -1213,9 +1213,9 @@ void LCR_gameTimeToStr(uint32_t timeMS, char *str) str[5] = '\''; str[4] = '0' + timeMS % 10; // seconds timeMS /= 10; - str[3] = '0' + timeMS % 10; + str[3] = '0' + timeMS % 6; str[2] = '\''; - timeMS /= 60; + timeMS /= 6; str[1] = '0' + timeMS % 10; // minutes timeMS /= 10; str[0] = '0' + timeMS % 10;