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);
|
std::string unlockPrice = format::NumberToString<int>(price);
|
||||||
if (numCoins < 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");
|
+ " \xEA""owdercoins to purchase.\n\nYou have " + format::NumberToString<int>(numCoins) + " coins");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -196,7 +196,7 @@ GameController::GameController():
|
|||||||
|
|
||||||
if (salt != expectedSaltStr)
|
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;
|
coins = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user