1
0
Fork 0

Change: Don't check for company bankruptcy if infinite money setting is on

pull/11902/head
merni-ns 2024-01-28 00:14:15 +05:30
parent f41bba8f02
commit ff11e9bfcc
1 changed files with 3 additions and 0 deletions

View File

@ -568,6 +568,9 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
*/
static void CompanyCheckBankrupt(Company *c)
{
/* If "Infinite money" setting is on, companies should not go bankrupt. */
if (_settings_game.difficulty.infinite_money) return;
/* If the company has money again, it does not go bankrupt */
if (c->money - c->current_loan >= -_economy.max_loan) {
int previous_months_of_bankruptcy = CeilDiv(c->months_of_bankruptcy, 3);