From 4075b006a0f07099cd43cebb4d38b1e79e57acd6 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Sat, 20 Oct 2012 21:57:33 +0000 Subject: (svn r24617) -Change: Only bankrupt, if you have negative money considering you took max loan (ZxBiohazardZx) --- src/economy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/economy.cpp b/src/economy.cpp index b4fd7e7e7..0e7f99b18 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -523,7 +523,7 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner) static void CompanyCheckBankrupt(Company *c) { /* If the company has money again, it does not go bankrupt */ - if (c->money >= 0) { + if (c->money - c->current_loan >= -_economy.max_loan) { c->quarters_of_bankruptcy = 0; c->bankrupt_asked = 0; return; -- cgit v1.2.3-70-g09d2