fixed shmeconds
This commit is contained in:
parent
245abf90f3
commit
259fc5ce76
4 changed files with 9 additions and 9 deletions
|
@ -200,15 +200,15 @@ func save():
|
|||
|
||||
#Convert seconds into M:SS:MS
|
||||
func timeify(input):
|
||||
if input < 600:
|
||||
var minutes = str(floor(input / 60))
|
||||
var seconds = floor(fmod(input,60))
|
||||
var milliseconds := floor(fmod(input, 1) * 100)
|
||||
return minutes + ":" + ("%02d" % seconds) + "." + ("%02d" % milliseconds)
|
||||
if input <= 5999099:
|
||||
var seconds = fmod(Game.time / 1000,60)
|
||||
var minutes = floor((Game.time / 1000) / 60)
|
||||
var centiseconds = fmod(floor(seconds * 100),100)
|
||||
return ("%02d" % minutes) + ":" + ("%02d" % seconds) + "." + ("%02d" % centiseconds)
|
||||
elif input == INF:
|
||||
return "-:--.--"
|
||||
else:
|
||||
return "9:59.99"
|
||||
return "99:59.99"
|
||||
|
||||
#Restart level
|
||||
func restart_level():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue