fix-nodes

This commit is contained in:
knowledgenude 2020-11-19 10:38:46 -03:00
parent 97bbf0b9d2
commit cc481ea15c
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ class GetCursorStateNode extends LogicNode {
return switch (from) {
case 0:
mouse.hidden ? mouse.locked ? return true : return false;
mouse.hidden && mouse.locked ? return true : return false;
case 1:
mouse.hidden;
case 2:

View file

@ -15,6 +15,6 @@ class MapRangeNode extends LogicNode {
if (value == null || fromMin == null || fromMax == null || toMin == null || toMax == null) return null;
return (value / fromMax - fromMin) * toMax - toMin;
return (value - fromMin) * (toMax - fromMax) / (toMin - fromMin) + fromMax;
}
}