mirror of https://github.com/OpenTTD/OpenTTD.git
Fix 13528bfcd0: bank balance command allows int64, GS was limited to int32
This commit is contained in:
parent
b6609d1833
commit
3287acd114
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue