From 2cde5bf8fcfd52b1ffc81351ea39cbd45348dbf0 Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Fri, 18 Oct 2024 00:36:55 +0200 Subject: [PATCH] Compiling fixes --- source/funkin/backend/chart/ChartData.hx | 2 +- source/funkin/backend/utils/CoolUtil.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/backend/chart/ChartData.hx b/source/funkin/backend/chart/ChartData.hx index c46164f54..93f18ae4b 100644 --- a/source/funkin/backend/chart/ChartData.hx +++ b/source/funkin/backend/chart/ChartData.hx @@ -19,7 +19,7 @@ typedef ChartMetaData = { public var ?bpm:Float; public var ?displayName:String; public var ?beatsPerMeasure:Float; - public var ?stepsPerBeat:Float; + public var ?stepsPerBeat:Int; public var ?needsVoices:Bool; public var ?icon:String; public var ?color:Dynamic; diff --git a/source/funkin/backend/utils/CoolUtil.hx b/source/funkin/backend/utils/CoolUtil.hx index 9fd7f3c52..aa659968a 100644 --- a/source/funkin/backend/utils/CoolUtil.hx +++ b/source/funkin/backend/utils/CoolUtil.hx @@ -394,7 +394,7 @@ class CoolUtil var timeSignParsed:Array> = musicInfo["TimeSignature"] == null ? [] : [for(s in musicInfo["TimeSignature"].split("/")) Std.parseFloat(s)]; var beatsPerMeasure:Float = 4; - var stepsPerBeat:Float = 4; + var stepsPerBeat:Int = 4; // Check later, i dont think timeSignParsed can contain null, only nan if (timeSignParsed.length == 2 && !timeSignParsed.contains(null)) {