mirror of https://github.com/OpenTTD/OpenTTD
(svn r24617) -Change: Only bankrupt, if you have negative money considering you took max loan (ZxBiohazardZx)
parent
75866f38d9
commit
4075b006a0
|
@ -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…
Reference in New Issue