From fdcef593221f82c19b46ca483fe61fed7ee5f56d Mon Sep 17 00:00:00 2001 From: gdz Date: Sun, 14 Dec 2025 00:16:52 +0100 Subject: [PATCH] removed old code for selecting units (not working) --- Scenes/Unit/unit.gd | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Scenes/Unit/unit.gd b/Scenes/Unit/unit.gd index a112da3..8ccea3b 100644 --- a/Scenes/Unit/unit.gd +++ b/Scenes/Unit/unit.gd @@ -31,15 +31,6 @@ func _input(event: InputEvent): if event.is_action_pressed("Select"): print_debug("Action is Select") - # Can't select from myself since (global_)position is alway 0,0 - print("Event position: ", event.position) - print("My position is", position) - print("My global_position is", global_position) - - if event.position == global_position: - _setSelected(true) - print_debug("Unit selected") - # We combine it with the fact that it is already marked (@see _markUnit) if _readyToSelect: _selectUnit() else: _deselectUnit()