From 9ba757ffa8244febb133f2429f1c61852c1f7396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Jos=C3=A9=20Fern=C3=A1ndez=20Naranjo?= Date: Wed, 7 Jun 2023 00:56:09 +0200 Subject: [PATCH] Make debug panel conditional to debug builds --- scenes/game.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenes/game.gd b/scenes/game.gd index 7a3721e..0c478af 100644 --- a/scenes/game.gd +++ b/scenes/game.gd @@ -198,7 +198,7 @@ func _input(event): if event.is_action_pressed("quit"): OS.window_fullscreen = !OS.window_fullscreen - if event.is_action_pressed("debug"): + if event.is_action_pressed("debug") and OS.has_feature("debug"): if $"%DebugPanel".visible: $"%DebugPanel".hide() else: