From dfc85dd9942fca12f9908fde19414feef30995d5 Mon Sep 17 00:00:00 2001 From: BigBrotherNii Date: Sun, 21 Jul 2024 14:50:11 +0200 Subject: stopped camera floowing function if submenu is open --- client/player/follow_camera.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/player/follow_camera.gd b/client/player/follow_camera.gd index 3c993ee0..6bd1b9ef 100644 --- a/client/player/follow_camera.gd +++ b/client/player/follow_camera.gd @@ -51,7 +51,7 @@ func _ready(): ground = target.position func _process(delta): - if target != null: + if target != null && get_tree().root.get_node("Entry/GameMenu/IngameMenu") == null: follow(delta) func _input(_event): -- cgit v1.2.3-70-g09d2