Skip to content

Commit

Permalink
Make debug panel conditional to debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
fjfnaranjo committed Jun 6, 2023
1 parent e82b259 commit 9ba757f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scenes/game.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9ba757f

Please sign in to comment.