From fd2395890a87c58a951246f3d8eeae5cc103ae7e Mon Sep 17 00:00:00 2001 From: flustix Date: Sat, 21 Sep 2024 15:39:25 +0200 Subject: [PATCH] Don't allow values below 1 as BPM --- .../Edit/Tabs/Charting/Points/Entries/TimingPointEntry.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluXis.Game/Screens/Edit/Tabs/Charting/Points/Entries/TimingPointEntry.cs b/fluXis.Game/Screens/Edit/Tabs/Charting/Points/Entries/TimingPointEntry.cs index a7afa0f9..fb77f225 100644 --- a/fluXis.Game/Screens/Edit/Tabs/Charting/Points/Entries/TimingPointEntry.cs +++ b/fluXis.Game/Screens/Edit/Tabs/Charting/Points/Entries/TimingPointEntry.cs @@ -57,7 +57,7 @@ protected override IEnumerable CreateSettings() DefaultText = timing.BPM.ToStringInvariant("0.00"), OnTextChanged = box => { - if (float.TryParse(box.Text, CultureInfo.InvariantCulture, out var result)) + if (float.TryParse(box.Text, CultureInfo.InvariantCulture, out var result) && result > 0) timing.BPM = result; else box.NotifyError();