From dde2e5a3ffe886d2d6de437daeaf54ba4aa95c73 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 9 Feb 2024 11:26:46 -0500 Subject: Fix seconds padding --- racing/load.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'racing') diff --git a/racing/load.gd b/racing/load.gd index 1455171..3fed3c9 100644 --- a/racing/load.gd +++ b/racing/load.gd @@ -99,5 +99,5 @@ func bump_timer(): var race_manager = global.get_node("RaceManager") var elapsed = float(Time.get_ticks_msec() - race_manager.started_time) / 1000.0 get_node("timer_label").text = ( - "%d:%02d:%02.2f" % [int(elapsed) / 60 / 60, int(elapsed) / 60 % 60, fmod(elapsed, 60.0)] + "%d:%02d:%05.2f" % [int(elapsed) / 60 / 60, int(elapsed) / 60 % 60, fmod(elapsed, 60.0)] ) -- cgit 1.4.1