fixed a door bug with cusotm levels

This commit is contained in:
JHDev2006
2025-09-24 17:53:33 +01:00
parent 0d0632ee2b
commit 5edc5466b8
3 changed files with 25 additions and 14 deletions

View File

@@ -43,6 +43,8 @@ func _ready() -> void:
Global.p_switch_timer = -1
if Checkpoint.passed:
Door.unlocked_doors = Checkpoint.unlocked_doors.duplicate()
else:
Door.unlocked_doors = []
if Global.current_campaign == "SMBANN":
DiscoLevel.reset_values()
DiscoLevel.first_load = true