From ff11e9bfcc065ae7764ed8b7800e45baa7023426 Mon Sep 17 00:00:00 2001 From: merni-ns Date: Sun, 28 Jan 2024 00:14:15 +0530 Subject: [PATCH] Change: Don't check for company bankruptcy if infinite money setting is on --- src/economy.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/economy.cpp b/src/economy.cpp index 840822b10c..decc19e8e1 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -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);