fixed checkpoint flags persiting nomateer the settings

This commit is contained in:
JHDev2006
2025-10-24 11:39:19 +01:00
parent df9c00c460
commit 3bfd80b68f

View File

@@ -34,6 +34,10 @@ func _ready() -> void:
hide()
if Settings.file.difficulty.checkpoint_style != 0:
queue_free()
return
elif Settings.file.difficulty.checkpoint_style == 0:
queue_free()
return
if passed and PipeArea.exiting_pipe_id == -1 and Global.current_game_mode != Global.GameMode.LEVEL_EDITOR and Level.vine_return_level == "" and passed_checkpoints[passed_checkpoints.size() - 1] == id:
for i in nodes_to_delete:
i.queue_free()