mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
(svn r24617) -Change: Only bankrupt, if you have negative money considering you took max loan (ZxBiohazardZx)
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user