From 4cedf768f720def935b540812e319befd87a3edc Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sat, 3 Feb 2024 00:40:29 -0800 Subject: [PATCH] fix AttackHoldRelease timing --- src/Math/Easing.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Math/Easing.cs b/src/Math/Easing.cs index 7a40cf9e..a95e5b19 100644 --- a/src/Math/Easing.cs +++ b/src/Math/Easing.cs @@ -68,7 +68,7 @@ namespace MoonWorks.Math { return Interp(start, hold, time, attackDuration, Function.Get(attackEasingFunction)); } - else if (time >= attackDuration && time < holdDuration) + else if (time >= attackDuration && time < attackDuration + holdDuration) { return hold; } @@ -93,7 +93,7 @@ namespace MoonWorks.Math { return Interp(start, hold, time, attackDuration, Function.Get(attackEasingFunction)); } - else if (time >= attackDuration && time < holdDuration) + else if (time >= attackDuration && time < attackDuration + holdDuration) { return hold; }