From b40c0a241ca55e65de58184cc43b4e274dc1b388 Mon Sep 17 00:00:00 2001 From: Dennis Ploeger Date: Thu, 17 Feb 2022 22:25:13 +0100 Subject: [PATCH] feat: Removed obsolete code. Fixes godot-escoria/escoria-issues#99 (#499) --- .../escoria-core/game/scenes/dialogs/esc_dialog_player.gd | 3 +-- addons/escoria-dialog-simple/esc_dialog_simple.gd | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/addons/escoria-core/game/scenes/dialogs/esc_dialog_player.gd b/addons/escoria-core/game/scenes/dialogs/esc_dialog_player.gd index bc63d4f57..cd0d1a474 100644 --- a/addons/escoria-core/game/scenes/dialogs/esc_dialog_player.gd +++ b/addons/escoria-core/game/scenes/dialogs/esc_dialog_player.gd @@ -43,8 +43,7 @@ func _ready(): # # - event: The input event func _input(event): - if event is InputEventMouseButton and event.pressed \ - and is_speaking and not _dialog_manager.get_type_player().is_paused: + if event is InputEventMouseButton and event.pressed and is_speaking: speedup() get_tree().set_input_as_handled() diff --git a/addons/escoria-dialog-simple/esc_dialog_simple.gd b/addons/escoria-dialog-simple/esc_dialog_simple.gd index d50a766bc..6264a9811 100644 --- a/addons/escoria-dialog-simple/esc_dialog_simple.gd +++ b/addons/escoria-dialog-simple/esc_dialog_simple.gd @@ -95,10 +95,3 @@ func interrupt(): if _dialog_player.get_children().has(_type_player): _dialog_player.remove_child(_type_player) emit_signal("say_finished") - - -# Getter for the type player -# -# *Returns* the type player -func get_type_player() -> Node: - return _type_player