Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrankel committed Aug 5, 2024
1 parent 352c3eb commit 5ad6473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/audio/music.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ fn update_beat(
let position = rq!(music.state().position());

beat.this_tick = if beat.last_position <= position {
count_beats(&config, beat.last_position, position)
count_beats(config, beat.last_position, position)
} else {
count_beats(&config, beat.last_position, config.music_loop_end)
+ count_beats(&config, config.music_loop_start, position)
count_beats(config, beat.last_position, config.music_loop_end)
+ count_beats(config, config.music_loop_start, position)
};
beat.total += beat.this_tick;
beat.last_position = position;
Expand Down

0 comments on commit 5ad6473

Please sign in to comment.