From 55014fa1ca02492fea1322e5ddea44d7a2607de2 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 25 Sep 2020 20:02:53 -0600 Subject: [PATCH] Use ceil, not floor, when converting the timer to seconds --- js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 7cf4ef4..da4c046 100644 --- a/js/game.js +++ b/js/game.js @@ -1029,7 +1029,7 @@ export class Level { return null; } - let time = Math.floor((this.time_remaining ?? 0) / 20); + let time = Math.ceil((this.time_remaining ?? 0) / 20); return { time: time, abstime: this.tic_counter,