From 382536b1494ba8bca603cfedf6bc6c6c9c25d165 Mon Sep 17 00:00:00 2001 From: Balloonpopper Date: Sat, 3 Sep 2022 10:54:02 +1000 Subject: [PATCH] Fix: get_simple_path not working properly in Godot 3.5 --- .../escoria-core/game/core-scripts/esc/esc_action_manager.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/escoria-core/game/core-scripts/esc/esc_action_manager.gd b/addons/escoria-core/game/core-scripts/esc/esc_action_manager.gd index f0316b50..b90d8f9c 100644 --- a/addons/escoria-core/game/core-scripts/esc/esc_action_manager.gd +++ b/addons/escoria-core/game/core-scripts/esc/esc_action_manager.gd @@ -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,