change internal mode of converted tko/mna map

This commit is contained in:
MaxOhn
2022-07-05 12:52:02 +02:00
parent 13f515c9ca
commit 48c798315a
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -4,7 +4,7 @@ use crate::{
curve::{Curve, CurveBuffers},
limited_queue::LimitedQueue,
parse::{legacy_sort, HitObjectKind, Pos2},
Beatmap,
Beatmap, GameMode,
};
use self::{
@@ -195,6 +195,8 @@ impl Beatmap {
legacy_sort(&mut map.hit_objects);
map.mode = GameMode::MNA;
map
}
}
+3 -1
View File
@@ -3,7 +3,7 @@ use std::cmp::Ordering;
use crate::{
curve::{Curve, CurveBuffers},
parse::{HitObject, HitObjectKind},
Beatmap,
Beatmap, GameMode,
};
const LEGACY_TAIKO_VELOCITY_MULTIPLIER: f32 = 1.4;
@@ -85,6 +85,8 @@ impl Beatmap {
map.hit_objects
.sort_by(|p1, p2| p1.partial_cmp(p2).unwrap_or(Ordering::Equal));
map.mode = GameMode::TKO;
map
}