From 39d6527454cb88f62f06ff1d91960faf3020e035 Mon Sep 17 00:00:00 2001 From: JHDev2006 Date: Sat, 4 Oct 2025 11:23:39 +0100 Subject: [PATCH] swithced order of death loading, so game overs take priority --- Scripts/Classes/Entities/Player.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Classes/Entities/Player.gd b/Scripts/Classes/Entities/Player.gd index ef77837..e50f99b 100644 --- a/Scripts/Classes/Entities/Player.gd +++ b/Scripts/Classes/Entities/Player.gd @@ -630,10 +630,10 @@ func death_load() -> void: # Determine which action to take if death_actions.has(Global.current_game_mode): death_actions[Global.current_game_mode].call() + if 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 Global.lives <= 0 and Settings.file.difficulty.inf_lives == 0: - death_actions["game_over"].call() else: death_actions["default_reload"].call()