Skip to content

Commit

Permalink
Fix incorrect return type cast (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
audeck authored Apr 28, 2024
1 parent bc8db28 commit 2e64672
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ func _smooth_damp(target_axis: float, self_axis: float, index: int, current_velo
return output


func _set_limit_clamp_position(value: Vector2) -> Vector2i:
func _set_limit_clamp_position(value: Vector2) -> Vector2:
var camera_frame_rect_size: Vector2 = _camera_frame_rect().size
value.x = clampf(value.x, _limit_sides.x + camera_frame_rect_size.x / 2, _limit_sides.z - camera_frame_rect_size.x / 2)
value.y = clampf(value.y, _limit_sides.y + camera_frame_rect_size.y / 2, _limit_sides.w - camera_frame_rect_size.y / 2)
Expand Down

0 comments on commit 2e64672

Please sign in to comment.