From 0004961f90351c3013ca3a5f6b7047c88af4ad41 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 39b939861..1305d3d43 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)