Fix bug with custom words and remove extra prints

This commit is contained in:
Terry Hearst 2024-03-07 22:18:14 -05:00
parent 0a34af5d0d
commit 2d3fd01285
2 changed files with 1 additions and 5 deletions

View file

@ -96,10 +96,6 @@ func detect_params() -> void:
if "--allowfuture" in args: if "--allowfuture" in args:
allow_future = true allow_future = true
print("daily: ", daily)
print("custom: ", custom)
print("allowfuture: ", allow_future)
if daily: if daily:
game_mode = GameMode.DAILY game_mode = GameMode.DAILY
get_tree().change_scene_to_file.call_deferred("res://src/main.tscn") get_tree().change_scene_to_file.call_deferred("res://src/main.tscn")

View file

@ -134,7 +134,7 @@ func guess_entered() -> void:
if input_guess.length() != letter_count: if input_guess.length() != letter_count:
show_error("Word must be five characters.") show_error("Word must be five characters.")
return return
if not Global.is_valid_word(input_guess): if not Global.is_valid_word(input_guess) and input_guess != target_word:
show_error("Not a recognized word.") show_error("Not a recognized word.")
return return