Fixed bug where reroll button is triggered by any key (#279)

This commit is contained in:
MeirGavish
2025-12-05 10:06:43 +02:00
committed by GitHub
parent 9f170f298d
commit 28ff6c81ef
+5
View File
@@ -3916,6 +3916,11 @@ static inline void game_shop_reroll(int* reroll_cost)
static void shop_reroll_row_on_key_hit(SelectionGrid* selection_grid, Selection* selection)
{
if (!key_hit(SELECT_CARD))
{
return;
}
if (money >= reroll_cost)
{
game_shop_reroll(&reroll_cost);