mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-03-22 07:09:58 +01:00
fix crash when can't purchase back, fix debug info in tampering message
This commit is contained in:
parent
fdd6618896
commit
9c5876f0b4
@ -34,7 +34,7 @@ public:
|
||||
std::string unlockPrice = format::NumberToString<int>(price);
|
||||
if (numCoins < price)
|
||||
{
|
||||
new ErrorMessage("Cannot afford pack", "This pack requires " + unlockPrice
|
||||
ErrorMessage::Blocking("Cannot afford pack", "This pack requires " + unlockPrice
|
||||
+ " \xEA""owdercoins to purchase.\n\nYou have " + format::NumberToString<int>(numCoins) + " coins");
|
||||
}
|
||||
else
|
||||
|
@ -196,7 +196,7 @@ GameController::GameController():
|
||||
|
||||
if (salt != expectedSaltStr)
|
||||
{
|
||||
gameModel->Log("Coins have been reset due to login status change or tampering, expected " + expectedSaltStr + ", got " + salt + ", current coins " + format::NumberToString(coins), false);
|
||||
gameModel->Log("Coins have been reset due to login status change or tampering", false);
|
||||
coins = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user