summaryrefslogtreecommitdiff
path: root/Game/States/Default/StateDefault.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-21 14:15:11 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-21 14:15:11 +0100
commit5b35174ffab42f0331f1a6527ef6bbab7a3dbdcb (patch)
tree071530353b02f45fffc26aa4b0f43f7b901b3046 /Game/States/Default/StateDefault.gd
parenta854a1862a30632e49520f6e1e11333d5c8ff241 (diff)
next commitHEADmain
Diffstat (limited to 'Game/States/Default/StateDefault.gd')
-rw-r--r--Game/States/Default/StateDefault.gd5
1 files changed, 2 insertions, 3 deletions
diff --git a/Game/States/Default/StateDefault.gd b/Game/States/Default/StateDefault.gd
index b7b630c..014eb40 100644
--- a/Game/States/Default/StateDefault.gd
+++ b/Game/States/Default/StateDefault.gd
@@ -16,6 +16,5 @@ func _state_unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("select"):
# if not multi selecting
if not event.is_double_click() and not Input.is_action_pressed("select_multiple"):
- if Tower.selected_towers:
- for tower in Tower.selected_towers.duplicate():
- tower.is_selected = false
+ for tower: Tower in Client.selection.get_nodes().duplicate():
+ tower.is_selected = false