[MIRROR] works directly with seconds (#8467)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-05-30 22:49:30 +02:00
committed by GitHub
co-authored by Kashargul
parent adc6dada8a
commit 0e2cb72c37
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -135,7 +135,7 @@
for(var/i in 1 to LAZYLEN(L))
real_new_time += text2num(L[i]) * (60 ** (LAZYLEN(L) - i))
else
real_new_time = text2num(new_time * 10)
real_new_time = text2num(new_time)
time = clamp(real_new_time, 0, 600)
return TRUE
if("range")
+1 -1
View File
@@ -94,6 +94,6 @@
for(var/i in 1 to LAZYLEN(L))
real_new_time += text2num(L[i]) * (60 ** (LAZYLEN(L) - i))
else
real_new_time = text2num(new_time * 10)
real_new_time = text2num(new_time)
time = clamp(real_new_time, 0, 600)
return TRUE