Fixed bug where reroll button is triggered by any key (#279)
This commit is contained in:
@@ -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)
|
static void shop_reroll_row_on_key_hit(SelectionGrid* selection_grid, Selection* selection)
|
||||||
{
|
{
|
||||||
|
if (!key_hit(SELECT_CARD))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (money >= reroll_cost)
|
if (money >= reroll_cost)
|
||||||
{
|
{
|
||||||
game_shop_reroll(&reroll_cost);
|
game_shop_reroll(&reroll_cost);
|
||||||
|
|||||||
Reference in New Issue
Block a user