fixed the game shop button interactions.

This commit is contained in:
techdragon.nguyen@gmail.com
2012-01-31 13:11:08 +00:00
parent 4762ffea87
commit b138b8e97d
+5 -1
View File
@@ -608,6 +608,7 @@ void GameStateShop::Update(float dt)
{ {
srcCards->Shuffle(); srcCards->Shuffle();
load(); load();
disablePurchase = false;
} }
else if (btn == JGE_BTN_CANCEL) else if (btn == JGE_BTN_CANCEL)
options[Options::DISABLECARDS].number = !options[Options::DISABLECARDS].number; options[Options::DISABLECARDS].number = !options[Options::DISABLECARDS].number;
@@ -623,10 +624,13 @@ void GameStateShop::Update(float dt)
return; return;
} }
else if (btn == JGE_BTN_SEC) else if (btn == JGE_BTN_SEC)
{
bListCards = !bListCards; bListCards = !bListCards;
disablePurchase = false;
}
else if (shopMenu) else if (shopMenu)
{ {
if (cycleCardsButton->ButtonPressed() || showCardListButton->ButtonPressed()) if (btn == JGE_BTN_OK && (cycleCardsButton->ButtonPressed() || showCardListButton->ButtonPressed()))
{ {
disablePurchase = true; disablePurchase = true;
return; return;