fix bug where purchases always succeeded
This commit is contained in:
parent
40d2850ff7
commit
17c79f1661
@ -46,7 +46,7 @@ void CardInput::Next()
|
|||||||
void CardInput::AttemptPurchase()
|
void CardInput::AttemptPurchase()
|
||||||
{
|
{
|
||||||
std::string error;
|
std::string error;
|
||||||
int num = 0;//rand()%100;
|
int num = rand()%100;
|
||||||
if (num < purchaseChance)
|
if (num < purchaseChance)
|
||||||
{
|
{
|
||||||
bool confirm = ConfirmPrompt::Blocking("Purchase \xEA""owdercoins?", "Clicking 'Confirm' will charge your card and add " +
|
bool confirm = ConfirmPrompt::Blocking("Purchase \xEA""owdercoins?", "Clicking 'Confirm' will charge your card and add " +
|
||||||
|
Reference in New Issue
Block a user