1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 06:59:10 +00:00

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

This commit is contained in:
planetmaker
2012-10-20 21:57:33 +00:00
parent 75866f38d9
commit 4075b006a0

View File

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