diff options
author | nokoe <nokoe@mailbox.org> | 2024-06-23 00:59:05 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:31:29 +0200 |
commit | f722ef29c49e358c0e7fb660d49e99cf0f7591fa (patch) | |
tree | 842802cd700c0549de63b673a11555e59314c0b1 /client/scripts/controllable_player.gd | |
parent | 8709a005e81495e8c3ed2c12c1e1421e4736a258 (diff) | |
download | hurrycurry-f722ef29c49e358c0e7fb660d49e99cf0f7591fa.tar hurrycurry-f722ef29c49e358c0e7fb660d49e99cf0f7591fa.tar.bz2 hurrycurry-f722ef29c49e358c0e7fb660d49e99cf0f7591fa.tar.zst |
fix warnings
Diffstat (limited to 'client/scripts/controllable_player.gd')
-rw-r--r-- | client/scripts/controllable_player.gd | 4 |
1 files changed, 2 insertions, 2 deletions
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 |