fixed checkpoints being activated in multiple sub levels (still only one per sublevel though), and also fixed some translation stuff

This commit is contained in:
JHDev2006
2025-09-21 15:46:14 +01:00
parent 9fa6f46314
commit 312858c3d2
16 changed files with 68 additions and 65 deletions

View File

@@ -16,6 +16,9 @@ static var sublevel_id := 0
static var old_state := [[], []]
func _enter_tree() -> void:
if Global.level_editor != null:
if sublevel_id != Global.level_editor.sub_level_id and passed:
passed = false
if passed:
LevelPersistance.active_nodes = old_state.duplicate(true)