fixed dying causing 2 lives to be taken, instead of 1

This commit is contained in:
JHDev2006
2025-09-15 09:59:33 +01:00
parent 5b58dc1d74
commit 9228b7bca1
2 changed files with 42 additions and 40 deletions

View File

@@ -533,6 +533,8 @@ func die(pit := false) -> void:
func death_load() -> void:
power_state = get_node("PowerStates/Small")
Global.player_power_states = "0000"
if Global.death_load:
return
Global.death_load = true
if Global.current_game_mode == Global.GameMode.CUSTOM_LEVEL:
LevelTransition.level_to_transition_to = "res://Scenes/Levels/LevelEditor.tscn"