mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user