Fix Extra Checkpoint option not doing anything + other checkpoint fixes (#649)

* Fix Extra Checkpoint option not doing anything + other checkpoint fixes

* Remove redundancy
This commit is contained in:
John Cooper McDonald
2025-10-22 13:51:22 -05:00
committed by GitHub
parent b54c4b5913
commit 1e2d4d9404
5 changed files with 3 additions and 12 deletions

View File

@@ -6,9 +6,6 @@ static var character_save := "Mario"
func _ready() -> void:
activated.get_node("ResourceSetterNew").resource_json = load(get_character_sprite_path(0))
if Settings.file.difficulty.checkpoint_style == 0 and (Global.current_game_mode != Global.GameMode.LEVEL_EDITOR and Global.current_game_mode != Global.GameMode.CUSTOM_LEVEL) or Global.current_campaign == "SMBANN":
owner.queue_free()
return
owner.show()
if owner.passed:
sprite.hide()