Skip to content

Commit

Permalink
Update core/tag.c
Browse files Browse the repository at this point in the history
Co-authored-by: Marten Lohstroh <[email protected]>
  • Loading branch information
erlingrj and lhstrh authored May 17, 2024
1 parent 2d61b1e commit ac3faad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ tag_t lf_tag_add(tag_t a, tag_t b) {
}

if (b.time > 0) {
// NOTE: The reason for handling this case is to "reset" the microstep counter at each after delay.
a.microstep = 0; // Ignore microstep of first arg if time of second is > 0.
}
tag_t result = {.time = res, .microstep = a.microstep + b.microstep};
Expand Down

0 comments on commit ac3faad

Please sign in to comment.