Skip to content

Commit

Permalink
Update storyteller.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rewin123 committed Dec 7, 2023
1 parent 5705aea commit dab4864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storyteller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit dab4864

Please sign in to comment.