From dab486431c77a84692a5a332017bedcfa9825748 Mon Sep 17 00:00:00 2001 From: rewin Date: Thu, 7 Dec 2023 23:34:38 +0300 Subject: [PATCH] Update storyteller.rs --- src/storyteller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storyteller.rs b/src/storyteller.rs index 0e90d45..36d0057 100644 --- a/src/storyteller.rs +++ b/src/storyteller.rs @@ -130,7 +130,7 @@ fn level_timer( ) { for mut timer in timers.iter_mut() { let level_time = time.elapsed_seconds() - teller.level_start_time; - if (level_time > 0.0) { + if (teller.level_duration - level_time > 0.0) { let dur = Duration::from_secs_f32(teller.level_duration - level_time); timer.sections[0].value =