From d768f48eaef6c4af0a8c4a7e0df78101289f002f Mon Sep 17 00:00:00 2001 From: minenice55 <43734252+minenice55@users.noreply.github.com> Date: Mon, 21 Mar 2022 11:23:42 -0400 Subject: [PATCH] Fan Club: address issue with double clap -> I suppose stack --- Assets/Scripts/Games/FanClub/FanClub.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Games/FanClub/FanClub.cs b/Assets/Scripts/Games/FanClub/FanClub.cs index 39b93986..1305d3d4 100644 --- a/Assets/Scripts/Games/FanClub/FanClub.cs +++ b/Assets/Scripts/Games/FanClub/FanClub.cs @@ -178,8 +178,17 @@ namespace HeavenStudio.Games private void DisableSpecBop(float beat, float length) { - noSpecBop.length = length; - noSpecBop.startBeat = beat; + float bt = Conductor.instance.songPositionInBeats; + if (bt >= noSpecBop.startBeat && bt < noSpecBop.startBeat + noSpecBop.length) + { + float thisStToNextSt = beat - noSpecBop.startBeat; + noSpecBop.length = thisStToNextSt + length; + } + else + { + noSpecBop.length = length; + noSpecBop.startBeat = beat; + } } public void PlayAnim(float beat, float length, int type)