fruits: fixed reverse sliders

This commit is contained in:
MaxOhn
2021-04-27 18:00:48 +02:00
parent 1b05c8744b
commit 97f3cb2030
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
## Upcoming
- No changes so far
- fruits:
- Fixed tick timing for reverse sliders
# v0.2.1
+3 -1
View File
@@ -150,7 +150,9 @@ pub fn stars(map: &Beatmap, mods: impl Mods, passed_objects: Option<usize>) -> S
// Actual ticks
if repeat_id & 1 == 1 {
slider_objects.extend(ticks.iter().copied().rev());
slider_objects.extend(ticks.iter().rev().enumerate().map(
|(i, (pos, time))| (*pos, *time + time_add * 2.0 * (i + 1) as f32),
));
} else {
slider_objects.extend(ticks.iter().copied());
}