mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-10 10:24:07 +02:00
fix bug where purchases always succeeded
This commit is contained in:
@@ -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