diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-09 11:26:46 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-02-09 11:26:46 -0500 |
commit | dde2e5a3ffe886d2d6de437daeaf54ba4aa95c73 (patch) | |
tree | 531bb2fc3ed908ff1f655bf6aa97c311a9c23552 /racing | |
parent | 12c696bc5b6e960a1d9228a5b68e5aafcc02e23c (diff) | |
download | lingo-race-dde2e5a3ffe886d2d6de437daeaf54ba4aa95c73.tar.gz lingo-race-dde2e5a3ffe886d2d6de437daeaf54ba4aa95c73.tar.bz2 lingo-race-dde2e5a3ffe886d2d6de437daeaf54ba4aa95c73.zip |
Fix seconds padding
Diffstat (limited to 'racing')
-rw-r--r-- | racing/load.gd | 2 |
1 files changed, 1 insertions, 1 deletions
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(): | |||
99 | var race_manager = global.get_node("RaceManager") | 99 | var race_manager = global.get_node("RaceManager") |
100 | var elapsed = float(Time.get_ticks_msec() - race_manager.started_time) / 1000.0 | 100 | var elapsed = float(Time.get_ticks_msec() - race_manager.started_time) / 1000.0 |
101 | get_node("timer_label").text = ( | 101 | get_node("timer_label").text = ( |
102 | "%d:%02d:%02.2f" % [int(elapsed) / 60 / 60, int(elapsed) / 60 % 60, fmod(elapsed, 60.0)] | 102 | "%d:%02d:%05.2f" % [int(elapsed) / 60 / 60, int(elapsed) / 60 % 60, fmod(elapsed, 60.0)] |
103 | ) | 103 | ) |