Skip to content

Commit

Permalink
being more explicit that we mean modular addition
Browse files Browse the repository at this point in the history
  • Loading branch information
kavorite committed Jun 16, 2023
1 parent f07a203 commit 539f917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ fn unspool<'py>(
let stream = demo.get_stream();
let parser = DemoParser::new_with_analyser(stream, GameStateAnalyser::new());
let (_header, mut ticker) = parser.ticker()?;
let mut tick_seq = 0;
let mut tick_seq: u32 = 0;
let mut prev_tick = None;
while let Some(t) = ticker.next()? {
if let Some(prev) = prev_tick {
if prev != t.tick {
tick_seq += 1
tick_seq = tick_seq.wrapping_add(1);
}
if tick_seq % tick_freq.unwrap_or(1) != 0 {
continue;
Expand Down

0 comments on commit 539f917

Please sign in to comment.