From f722ef29c49e358c0e7fb660d49e99cf0f7591fa Mon Sep 17 00:00:00 2001 From: nokoe Date: Sun, 23 Jun 2024 00:59:05 +0200 Subject: fix warnings --- client/scripts/controllable_player.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/scripts/controllable_player.gd') diff --git a/client/scripts/controllable_player.gd b/client/scripts/controllable_player.gd index dce81d06..819e7a08 100644 --- a/client/scripts/controllable_player.gd +++ b/client/scripts/controllable_player.gd @@ -62,8 +62,8 @@ func collide(dt: float): self.velocity_.x += norm.x * f * dt self.velocity_.y += norm.y * f * dt -func aabb_point_distance(min: Vector2, max: Vector2, p: Vector2) -> float: - return (p - p.clamp(min, max)).length() +func aabb_point_distance(mi: Vector2, ma: Vector2, p: Vector2) -> float: + return (p - p.clamp(mi, ma)).length() func update_position(_new_position: Vector2, _new_rotation: float): pass -- cgit v1.2.3-70-g09d2