From e82990eeafdf0be5d42d8aaa9b7fb6091e0d8435 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 13 Oct 2024 11:14:43 +0200 Subject: next commit --- Game/Selection/selection_rectangle.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Game/Selection') diff --git a/Game/Selection/selection_rectangle.gd b/Game/Selection/selection_rectangle.gd index 5e7d1c1..944372d 100644 --- a/Game/Selection/selection_rectangle.gd +++ b/Game/Selection/selection_rectangle.gd @@ -16,7 +16,7 @@ var is_active: bool : get(): return abs(size) > Vector2(1, 1) and Client.state is StateDefault -@onready var camera: Camera2D = get_tree().get_first_node_in_group("camera") +@onready var camera: Camera = get_viewport().get_camera_2d() func _process(_delta: float) -> void: -- cgit v1.2.3