Skip to content

Commit 97a486f

Browse files
authored
Fix min and max values for events
min and max aren't supposed to be integers silly!!! well i mean it's fine but what if you want precise floats!!!!
1 parent 165338f commit 97a486f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/funkin/backend/chart/EventsData.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class EventsData {
6565
var hscriptInterp:Interp = new Interp();
6666
hscriptInterp.variables.set("Bool", TBool);
6767
hscriptInterp.variables.set("Int", function (?min:Int, ?max:Int, ?step:Float):EventParamType {return TInt(min, max, step);});
68-
hscriptInterp.variables.set("Float", function (?min:Int, ?max:Int, ?step:Float, ?precision:Int):EventParamType {return TFloat(min, max, step, precision);});
68+
hscriptInterp.variables.set("Float", function (?min:Float, ?max:Float, ?step:Float, ?precision:Int):EventParamType {return TFloat(min, max, step, precision);});
6969
hscriptInterp.variables.set("String", TString);
7070
hscriptInterp.variables.set("StrumLine", TStrumLine);
7171
hscriptInterp.variables.set("ColorWheel", TColorWheel);
@@ -127,4 +127,4 @@ enum EventParamType {
127127
TStrumLine;
128128
TColorWheel;
129129
TDropDown(?options:Array<String>);
130-
}
130+
}

0 commit comments

Comments
 (0)