From 032f6c32eafc08dd86fc82c94fa445f4e1098572 Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Mon, 26 Jun 2023 12:29:42 +0200 Subject: [PATCH] ok actually fixed roll sound --- Assets/Scripts/Games/NightWalkAgb/AgbNightWalk.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Games/NightWalkAgb/AgbNightWalk.cs b/Assets/Scripts/Games/NightWalkAgb/AgbNightWalk.cs index 2026d65f0..306f187cd 100644 --- a/Assets/Scripts/Games/NightWalkAgb/AgbNightWalk.cs +++ b/Assets/Scripts/Games/NightWalkAgb/AgbNightWalk.cs @@ -336,7 +336,7 @@ namespace HeavenStudio.Games { if (end.datamodel.Split(2) == "nightWalkAgb") { - if (end.beat <= entity.beat) tempEnds.Add(end); + tempEnds.Add(end); } } List tempEnds2 = new(); @@ -358,7 +358,7 @@ namespace HeavenStudio.Games double countInBeat = double.MinValue; float countInLength = 0; FindCountInBeatAndLength(lastSwitchBeat, ref countInBeat, ref countInLength); - return entity.beat >= countInBeat + countInLength; + return entity.beat >= countInBeat + countInLength && entity.beat >= lastSwitchBeat; } else {