floating point fixes (hopefully)

This commit is contained in:
TheZoroForce240
2025-05-05 17:53:43 +01:00
parent a7415783bc
commit 2b087dc96e
2 changed files with 5 additions and 5 deletions
@@ -38,8 +38,8 @@ class CharterEventTypeSelection extends UISubstateWindow {
var disableConductorEvents:Bool = false;
var disableOnlyContinuousChanges:Bool = false;
for (change in Conductor.bpmChangeMap) {
if (change.continuous && eventStepTime >= change.stepTime && eventStepTime < change.endStepTime) {
disableOnlyContinuousChanges = eventStepTime == change.stepTime; //allow time sig and instant bpm changes on the same event
if (change.continuous && MathUtil.greaterThanEqual(eventStepTime, change.stepTime) && MathUtil.lessThan(eventStepTime, change.endStepTime)) {
disableOnlyContinuousChanges = MathUtil.equal(eventStepTime, change.stepTime); //allow time sig and instant bpm changes on the same event
disableConductorEvents = !disableOnlyContinuousChanges;
}
}