From 4df1b9cb87f4fac6c24e561fed904298a82eca2d Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Sun, 18 Feb 2024 03:10:46 -0500 Subject: [PATCH] Fix keyboard letters wrongly grayed out --- src/main.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.gd b/src/main.gd index fb70d81..7bc5aa8 100644 --- a/src/main.gd +++ b/src/main.gd @@ -156,7 +156,8 @@ func guess_entered() -> void: keyboard_buttons[guess_letter].modulate = color_misplaced else: letter_instance.color = color_incorrect - keyboard_buttons[guess_letter].modulate = color_incorrect + if keyboard_buttons[guess_letter].modulate not in [color_correct, color_misplaced]: + keyboard_buttons[guess_letter].modulate = color_incorrect current_guess += 1