fixed a softlock in 6-3 SP and also a crash with challenge mode in the title screen

This commit is contained in:
JHDev2006
2025-09-24 21:39:39 +01:00
parent 21098feb72
commit d058425c13
3 changed files with 92 additions and 78 deletions

View File

@@ -93,6 +93,8 @@ func handle_challenge_mode_hud() -> void:
$Main/CoinCount.hide()
var red_coins_collected = ChallengeModeHandler.current_run_red_coins_collected
var idx := 0
if Global.world_num > 8:
return
if Global.in_title_screen:
red_coins_collected = int(ChallengeModeHandler.red_coins_collected[Global.world_num - 1][Global.level_num - 1])
for i in [$Main/RedCoins/Coin1, $Main/RedCoins/Coin2, $Main/RedCoins/Coin3, $Main/RedCoins/Coin4, $Main/RedCoins/Coin5]: