small racing game im working on
fix typo
| -rw-r--r-- | ui/editor/hatch.gd | 2 | ||||
| -rw-r--r-- | ui/editor/mousecast.gd | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/editor/hatch.gd b/ui/editor/hatch.gd index ccd4cb8..d1f2ac7 100644 --- a/ui/editor/hatch.gd +++ b/ui/editor/hatch.gd @@ -67,5 +67,5 @@ func _gui_input(event: InputEvent) -> void: depth = max(25, depth + i) input_ms = Time.get_ticks_msec() get_viewport().set_input_as_handled() - if event.is_action(&"change_depth+"): change.call(-Globals.SNAP.y) + if event.is_action(&"change_depth-"): change.call(-Globals.SNAP.y) elif event.is_action(&"change_depth+"): change.call(Globals.SNAP.y) diff --git a/ui/editor/mousecast.gd b/ui/editor/mousecast.gd index 90bd098..a1faed6 100644 --- a/ui/editor/mousecast.gd +++ b/ui/editor/mousecast.gd @@ -38,7 +38,7 @@ func _physics_process(_delta: float) -> void: start = null drag_area.hide() drag_area.size = Vector2.ZERO - if r.size.length() < depth: + if r.size.length_squared() < 1000: position_to(r.get_center()) force_raycast_update() if is_colliding() and get_collider() != null: |