1
0
Fork 0

(svn r24617) -Change: Only bankrupt, if you have negative money considering you took max loan (ZxBiohazardZx)

release/1.3
planetmaker 2012-10-20 21:57:33 +00:00
parent 75866f38d9
commit 4075b006a0
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
static void CompanyCheckBankrupt(Company *c) static void CompanyCheckBankrupt(Company *c)
{ {
/* If the company has money again, it does not go bankrupt */ /* 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->quarters_of_bankruptcy = 0;
c->bankrupt_asked = 0; c->bankrupt_asked = 0;
return; return;