Skip to content

Commit

Permalink
Fix: get_simple_path not working properly in Godot 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Balloonpopper authored and StraToN committed Sep 4, 2022
1 parent bc244d5 commit 382536b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,9 @@ func perform_inputevent_on_object(
var player_global_pos = escoria.main.current_scene.player.global_position
var clicked_position = event.position

if not player_global_pos.is_equal_approx(destination_position):
# Using this instead of is_equal_approx due to
# https://github.com/godotengine/godot/issues/65257
if (player_global_pos - destination_position).length() > 1:
dont_interact = true
escoria.logger.info(
self,
Expand Down

0 comments on commit 382536b

Please sign in to comment.