diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-10-13 11:14:43 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-10-13 11:14:43 +0200 |
commit | e82990eeafdf0be5d42d8aaa9b7fb6091e0d8435 (patch) | |
tree | ced53c3ec6168c68e63ae1083f6c6a34f99f4fa1 /Game/Selection | |
parent | 0697f674ec33f8381ba68cf064732ee40e6e584f (diff) |
next commit
Diffstat (limited to 'Game/Selection')
-rw-r--r-- | Game/Selection/selection_rectangle.gd | 2 |
1 files changed, 1 insertions, 1 deletions
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: |