From d53aff92126acda0663b76727f55a0952bf8db26 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Sat, 9 Jan 2021 15:52:19 -0600 Subject: [PATCH] add stacking back now that it works --- src/game/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/mod.rs b/src/game/mod.rs index af013b9..8bc61c0 100644 --- a/src/game/mod.rs +++ b/src/game/mod.rs @@ -71,7 +71,7 @@ impl Game { let beatmap = Beatmap::from_osz(&contents)?; self.beatmap = BeatmapExt::new(beatmap); self.beatmap.compute_colors(); - // self.beatmap.compute_stacking(); + self.beatmap.compute_stacking(); let dir = path.parent().unwrap(); @@ -192,7 +192,10 @@ impl Game { slider_info = Some((info, spline)); let end_pos = ho.inner.end_pos().unwrap(); - let end_pos = [PLAYFIELD_BOUNDS.x + osupx_scale_x * end_pos.0 as f32, PLAYFIELD_BOUNDS.y + osupx_scale_y*end_pos.1 as f32]; + let end_pos = [ + PLAYFIELD_BOUNDS.x + osupx_scale_x * end_pos.0 as f32, + PLAYFIELD_BOUNDS.y + osupx_scale_y * end_pos.1 as f32, + ]; self.skin.hitcircle.draw( ctx, (cs_real * 2.0, cs_real * 2.0),