a game about throwing hammers made for the github game off
Diffstat (limited to 'autoloads/Utils.gd')
| -rw-r--r-- | autoloads/Utils.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoloads/Utils.gd b/autoloads/Utils.gd index d04df53..484e146 100644 --- a/autoloads/Utils.gd +++ b/autoloads/Utils.gd @@ -2,7 +2,7 @@ extends Node class_name Util static func is_in_range(val: float, start: float, end: float) -> bool: - return val > start and val < end + return val >= start and val <= end static func instance_scene(scene: PackedScene, position: Vector2, on: Node) -> Node: var instance := scene.instantiate() as Node2D |