diff --git a/Cargo.lock b/Cargo.lock index 49fbac1..4ab6c56 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1072,7 +1072,7 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" [[package]] name = "libosu" version = "0.0.15" -source = "git+https://github.com/iptq/libosu?rev=80604d756eb462fe07ca3c2fbada52335a49b529#80604d756eb462fe07ca3c2fbada52335a49b529" +source = "git+https://github.com/iptq/libosu?rev=ca87faef07b308288dad623dd115c903a7a81353#ca87faef07b308288dad623dd115c903a7a81353" dependencies = [ "anyhow", "bitflags", diff --git a/Cargo.toml b/Cargo.toml index 51678ea..e4f4c03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,4 +21,4 @@ structopt = "0.3.21" [dependencies.libosu] git = "https://github.com/iptq/libosu" -rev = "80604d756eb462fe07ca3c2fbada52335a49b529" +rev = "ca87faef07b308288dad623dd115c903a7a81353" diff --git a/src/game/mod.rs b/src/game/mod.rs index a9c3875..af013b9 100644 --- a/src/game/mod.rs +++ b/src/game/mod.rs @@ -190,6 +190,19 @@ impl Game { color, )?; 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]; + self.skin.hitcircle.draw( + ctx, + (cs_real * 2.0, cs_real * 2.0), + DrawParam::default().dest(end_pos).color(color), + )?; + self.skin.hitcircleoverlay.draw( + ctx, + (cs_real * 2.0, cs_real * 2.0), + DrawParam::default().dest(end_pos), + )?; } self.skin.hitcircle.draw( @@ -197,7 +210,6 @@ impl Game { (cs_real * 2.0, cs_real * 2.0), DrawParam::default().dest(pos).color(color), )?; - self.skin.hitcircleoverlay.draw( ctx, (cs_real * 2.0, cs_real * 2.0),