fruits: fixed passed_objects in star calculation
This commit is contained in:
+3
-2
@@ -1,5 +1,6 @@
|
|||||||
# Upcoming
|
# Upcoming
|
||||||
|
|
||||||
- mania: Fixed pp calculation on HR
|
- fruits: Fixed passed objects in star calculation
|
||||||
- osu: Fixed panic on unwraping unavailable hit results
|
- mania: Fixed pp calculation on HR
|
||||||
|
- osu: Fixed panic on unwraping unavailable hit results
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -48,7 +48,6 @@ pub fn stars(map: &Beatmap, mods: impl Mods, passed_objects: Option<usize>) -> S
|
|||||||
let mut hit_objects = map
|
let mut hit_objects = map
|
||||||
.hit_objects
|
.hit_objects
|
||||||
.iter()
|
.iter()
|
||||||
.take(take)
|
|
||||||
.scan((None, 0.0), |(last_pos, last_time), h| match &h.kind {
|
.scan((None, 0.0), |(last_pos, last_time), h| match &h.kind {
|
||||||
HitObjectKind::Circle => {
|
HitObjectKind::Circle => {
|
||||||
let mut h = CatchObject::new((h.pos, h.start_time));
|
let mut h = CatchObject::new((h.pos, h.start_time));
|
||||||
@@ -171,7 +170,8 @@ pub fn stars(map: &Beatmap, mods: impl Mods, passed_objects: Option<usize>) -> S
|
|||||||
HitObjectKind::Spinner { .. } | HitObjectKind::Hold { .. } => Some(None),
|
HitObjectKind::Spinner { .. } | HitObjectKind::Hold { .. } => Some(None),
|
||||||
})
|
})
|
||||||
.filter_map(identity)
|
.filter_map(identity)
|
||||||
.flatten();
|
.flatten()
|
||||||
|
.take(take);
|
||||||
|
|
||||||
// Hyper dash business
|
// Hyper dash business
|
||||||
let half_catcher_width = calculate_catch_width(attributes.cs) / 2.0 / ALLOWED_CATCH_RANGE;
|
let half_catcher_width = calculate_catch_width(attributes.cs) / 2.0 / ALLOWED_CATCH_RANGE;
|
||||||
|
|||||||
Reference in New Issue
Block a user