From 6692953385e1a96082b4dad676715de6f8a0d2c5 Mon Sep 17 00:00:00 2001 From: Balloonpopper Date: Sun, 1 Jan 2023 01:25:49 +1100 Subject: [PATCH] fix: Remove call to stop dialog to correct player mirroring --- addons/escoria-core/game/core-scripts/esc_item.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/escoria-core/game/core-scripts/esc_item.gd b/addons/escoria-core/game/core-scripts/esc_item.gd index a4597370..ef08b3f9 100644 --- a/addons/escoria-core/game/core-scripts/esc_item.gd +++ b/addons/escoria-core/game/core-scripts/esc_item.gd @@ -749,7 +749,10 @@ func stop_talking(): if is_movable: if animations.speaks[_movable.last_dir].mirrored \ and not _movable.is_mirrored: - _sprite_node.scale.x *= -1 + # Allow this function to be called multiple times without setting + # the direction incorrectly + if _sprite_node.scale.x < 1: + _sprite_node.scale.x *= -1 animation_player.play( animations.idles[_movable.last_dir].animation