fixed the results menuu persisting to the title screen in ANN

This commit is contained in:
JoeMama
2025-10-10 11:41:22 +01:00
parent 57a659ba34
commit 01238a0f1c
3 changed files with 90 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ func _process(_delta: float) -> void:
if can_exit and Input.is_action_just_pressed("jump_0"):
SaveManager.write_save()
if Global.current_campaign == "SMBANN":
can_exit = false
Global.open_disco_results()
elif seen or Global.world_num > 8 or Global.current_game_mode != Global.GameMode.CAMPAIGN:
Global.transition_to_scene("res://Scenes/Levels/TitleScreen.tscn")