mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-05 19:20:19 -08:00
Fixed editor level test and custom levels crash
This commit is contained in:
parent
27ae3d5612
commit
527eebd08b
1 changed files with 3 additions and 3 deletions
|
|
@ -629,12 +629,12 @@ func death_load() -> void:
|
|||
}
|
||||
|
||||
# Determine which action to take
|
||||
if Global.lives <= 0 and Settings.file.difficulty.inf_lives == 0:
|
||||
if death_actions.has(Global.current_game_mode):
|
||||
death_actions[Global.current_game_mode].call()
|
||||
elif Global.lives <= 0 and Settings.file.difficulty.inf_lives == 0:
|
||||
death_actions["game_over"].call()
|
||||
elif Global.time <= 0:
|
||||
death_actions["time_up"].call()
|
||||
elif death_actions.has(Global.current_game_mode):
|
||||
death_actions[Global.current_game_mode].call()
|
||||
else:
|
||||
death_actions["default_reload"].call()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue