From a495681453c97578cc4a408d6919c6879524a603 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 24 Oct 2024 18:31:08 +0200 Subject: next commit --- Game/Selection/selection_rectangle.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Game/Selection') 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() -- cgit v1.2.3