diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-10-24 18:31:08 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-10-24 18:31:08 +0200 |
commit | a495681453c97578cc4a408d6919c6879524a603 (patch) | |
tree | 649c813cf26370a6ae762038b46c8e5fb075ea64 /Game/Selection | |
parent | 6db6465d1b938ec494cd66c9984bff5cc14bde11 (diff) |
next commit
Diffstat (limited to 'Game/Selection')
-rw-r--r-- | Game/Selection/selection_rectangle.gd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Game/Selection/selection_rectangle.gd b/Game/Selection/selection_rectangle.gd index 944372d..40619ba 100644 --- a/Game/Selection/selection_rectangle.gd +++ b/Game/Selection/selection_rectangle.gd @@ -30,11 +30,15 @@ func _process(_delta: float) -> void: queue_redraw() if is_active and Input.is_action_just_released("select"): - for area in get_overlapping_areas(): + var areas = get_overlapping_areas() + for area in areas: if "is_selected" in area.get_parent(): if area.get_parent().owner_id == multiplayer.get_unique_id(): area.get_parent().is_selected = true + if not areas.is_empty(): + Client.multi_select_finished.emit() + size = Vector2.ZERO queue_redraw() |