1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-24 14:16:56 +00:00

switch seemingly doesnt work

This commit is contained in:
lemz 2024-06-22 10:52:26 +02:00 committed by EliteMasterEric
parent 94fe4a06b9
commit 9a563ec46b

View file

@ -72,12 +72,13 @@ class NoteKind implements INoteScriptedClass
{
if (param.name == name)
{
switch (param.type)
if (param.type == NoteKindParamType.INT || param.type == NoteKindParamType.FLOAT)
{
case NoteKindParamType.INT | NoteKindParamType.FLOAT:
param.data.value = FlxMath.bound(value, param.data.min, param.data.max);
default:
param.data.value = value;
param.data.value = FlxMath.bound(value, param.data.min, param.data.max);
}
else
{
param.data.value = value;
}
break;
@ -118,11 +119,11 @@ class NoteKind implements INoteScriptedClass
*/
abstract NoteKindParamType(String) to String
{
public static var STRING:String = "String";
public static final STRING:String = 'String';
public static var INT:String = "Int";
public static final INT:String = 'Int';
public static var FLOAT:String = "Float";
public static final FLOAT:String = 'Float';
}
typedef NoteKindParamData =