guards in place for when scoreboard_host.txt is not present

This commit is contained in:
Haze Weathers 2024-12-03 16:08:33 -05:00
parent 6a68e025ea
commit 94ed6c6c68
3 changed files with 11 additions and 5 deletions

View file

@ -77,7 +77,7 @@ func _on_AnimationPlayer_animation_finished(anim_name):
else:
Game.change_map(LevelData.levels[Game.current_level].scene)
return
if Game.final_score > Game.old_high_score and not Debug.is_cheating:
if Game.final_score > Game.old_high_score and not Debug.is_cheating and not ScoreBoard.server_host.empty():
animation_player.play("submit_score_popup")
else:
Fade.fade_out(Options.transition_speed_secs)