From 5255370055b8c8e908cb6a24edf56d19385e1159 Mon Sep 17 00:00:00 2001 From: flustix Date: Sat, 23 Mar 2024 23:51:06 +0100 Subject: [PATCH] Fix tick notes not being hit if the key is pressed down and it spawns --- .../Gameplay/Ruleset/HitObjects/HitObjectManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fluXis.Game/Screens/Gameplay/Ruleset/HitObjects/HitObjectManager.cs b/fluXis.Game/Screens/Gameplay/Ruleset/HitObjects/HitObjectManager.cs index c5fb7924..cbb1b89d 100644 --- a/fluXis.Game/Screens/Gameplay/Ruleset/HitObjects/HitObjectManager.cs +++ b/fluXis.Game/Screens/Gameplay/Ruleset/HitObjects/HitObjectManager.cs @@ -247,6 +247,13 @@ private DrawableHitObject createHitObject(HitObject hitObject) var drawable = getDrawableFor(hitObject); drawable.Keybind = screen.Input.Keys[hitObject.Lane - 1]; drawable.OnHit += hit; + + for (var i = 0; i < screen.Input.Pressed.Length; i++) + { + var bind = screen.Input.Keys[i]; + drawable.OnPressed(bind); + } + return drawable; }