From 9adb11deeeb7006182168fb289dca35dc8711143 Mon Sep 17 00:00:00 2001 From: vandomej Date: Mon, 6 Oct 2025 13:53:32 -0700 Subject: [PATCH] Fixing painting index bug --- game_manager.gd | 6 ++++-- world.tscn | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/game_manager.gd b/game_manager.gd index 08a077f..2855191 100644 --- a/game_manager.gd +++ b/game_manager.gd @@ -102,8 +102,10 @@ func destroy_painting(): if get_painting_display().damage_deal(): cancel_bidding() get_painting_display().move_painting_to_pile(%PaintingPileDiscard) - next_painting() - turn_manager.speak_sentence("Oh nooooooo! Took too long!\nTry to make it up on the next painting!") + if not next_painting(): + end_auction() + else: + turn_manager.speak_sentence("Oh nooooooo! Took too long!\nTry to make it up on the next painting!") else: turn_manager.restart_turn() turn_manager.speak_sentence("Oops! Took too long! Quickly, try again!") diff --git a/world.tscn b/world.tscn index aa39a78..a161ac1 100644 --- a/world.tscn +++ b/world.tscn @@ -14,6 +14,7 @@ grow_vertical = 2 script = ExtResource("1_fj7yv") [node name="CursorManager" parent="." instance=ExtResource("2_tlwt5")] +layout_mode = 0 [node name="MainMenu" parent="." instance=ExtResource("1_f3sb7")] layout_mode = 1