mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
fixed a bug where full marathon times, were not being saved correctly, if 8-4 already had a single level run recorded
This commit is contained in:
@@ -276,9 +276,18 @@ func run_finished() -> void:
|
|||||||
if Global.current_game_mode == Global.GameMode.BOO_RACE:
|
if Global.current_game_mode == Global.GameMode.BOO_RACE:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
var best = best_level_warpless_times[Global.world_num - 1][Global.level_num - 1]
|
var best := -1
|
||||||
if is_warp_run:
|
if Global.current_game_mode == Global.GameMode.MARATHON_PRACTICE:
|
||||||
best = best_level_any_times.get(str(Global.world_num) + "-" + str(Global.level_num), -1)
|
if is_warp_run:
|
||||||
|
best = best_level_any_times.get(str(Global.world_num) + "-" + str(Global.level_num), -1)
|
||||||
|
else:
|
||||||
|
best = best_level_warpless_times[Global.world_num - 1][Global.level_num - 1]
|
||||||
|
else:
|
||||||
|
if is_warp_run:
|
||||||
|
best = marathon_best_any_time
|
||||||
|
else:
|
||||||
|
best = marathon_best_warpless_time
|
||||||
|
|
||||||
if best <= 0 or best > timer:
|
if best <= 0 or best > timer:
|
||||||
if Global.current_game_mode == Global.GameMode.MARATHON_PRACTICE:
|
if Global.current_game_mode == Global.GameMode.MARATHON_PRACTICE:
|
||||||
save_recording()
|
save_recording()
|
||||||
|
Reference in New Issue
Block a user