Skip to content

Commit f8977d8

Browse files
authored
Merge pull request #389 from YuevUwU/fix-autoplay-hold-end-hitsound
fix: unexpected hitsound at the end of hold note in autoplay mode
2 parents 93abed3 + fcbddde commit f8977d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

prpr/src/judge.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,9 @@ impl Judge {
866866
res.with_model(line.now_transform(res, &chart.lines) * note_transform, |res| {
867867
res.emit_at_origin(line.notes[id as usize].rotation(&line), res.res_pack.info.fx_perfect())
868868
});
869-
note_hitsound.play(res);
869+
if !matches!(chart.lines[line_id].notes[id as usize].kind, NoteKind::Hold { .. }) {
870+
note_hitsound.play(res);
871+
}
870872
}
871873
}
872874

0 commit comments

Comments
 (0)