Use ceil, not floor, when converting the timer to seconds

This commit is contained in:
Eevee (Evelyn Woods) 2020-09-25 20:02:53 -06:00
parent fcf65836ca
commit 55014fa1ca

View File

@ -1029,7 +1029,7 @@ export class Level {
return null; return null;
} }
let time = Math.floor((this.time_remaining ?? 0) / 20); let time = Math.ceil((this.time_remaining ?? 0) / 20);
return { return {
time: time, time: time,
abstime: this.tic_counter, abstime: this.tic_counter,