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

pull/155/head
planetmaker 12 years ago
parent afa2d8d636
commit b7c36310fe

@ -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;

Loading…
Cancel
Save