mania: scale score for pp calculation on partial plays
This commit is contained in:
@@ -29,7 +29,7 @@ impl BeatmapAttributes {
|
||||
}
|
||||
|
||||
/// Adjusts attributes w.r.t. mods.
|
||||
/// AR is further adjusted by the its hitwindow.
|
||||
/// AR is further adjusted by its hitwindow.
|
||||
/// OD is __not__ adjusted by its hitwindow.
|
||||
pub fn mods(self, mods: impl Mods) -> Self {
|
||||
if !mods.change_map() {
|
||||
|
||||
@@ -17,7 +17,8 @@ impl HitObject {
|
||||
pub fn end_time(&self) -> f32 {
|
||||
match &self.kind {
|
||||
HitObjectKind::Circle { .. } => self.start_time,
|
||||
HitObjectKind::Slider { .. } => self.start_time, // wrong but should be unreachable
|
||||
// incorrect, only called in mania which has no sliders though
|
||||
HitObjectKind::Slider { .. } => self.start_time,
|
||||
HitObjectKind::Spinner { end_time } => *end_time,
|
||||
HitObjectKind::Hold { end_time, .. } => *end_time,
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
use std::fmt;
|
||||
use std::ops;
|
||||
|
||||
/// Simple (x, y) coordinate
|
||||
/// Simple (x, y) coordinate / vector
|
||||
#[derive(Clone, Copy, Default, PartialEq)]
|
||||
pub struct Pos2 {
|
||||
pub x: f32,
|
||||
|
||||
Reference in New Issue
Block a user