Fix 13528bfcd0: bank balance command allows int64, GS was limited to int32

This commit is contained in:
Rubidium 2023-03-07 22:56:20 +01:00 committed by rubidium42
parent b6609d1833
commit 3287acd114
2 changed files with 0 additions and 4 deletions

View File

@ -241,8 +241,6 @@
{
EnforceDeityMode(false);
EnforcePrecondition(false, expenses_type < (ExpensesType)::EXPENSES_END);
EnforcePrecondition(false, (int64)delta >= INT32_MIN);
EnforcePrecondition(false, (int64)delta <= INT32_MAX);
EnforcePrecondition(false, tile == INVALID_TILE || ::IsValidTile(tile));
company = ResolveCompanyID(company);

View File

@ -246,8 +246,6 @@ public:
* @return True, if the bank balance was changed.
* @game @pre ScriptCompanyMode::IsDeity().
* @pre ResolveCompanyID(company) != COMPANY_INVALID.
* @pre delta >= -2**31
* @pre delta < 2**31
* @note You need to create your own news message to inform about costs/gifts that you create using this command.
* @api -ai
*/