diff options
author | planetmaker <planetmaker@openttd.org> | 2012-10-20 21:57:33 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2012-10-20 21:57:33 +0000 |
commit | 4075b006a0f07099cd43cebb4d38b1e79e57acd6 (patch) | |
tree | a6ea3808b1e195e8f9cc8df0979a4c2b8a603229 /src/economy.cpp | |
parent | 75866f38d9ba8936022211565a02ca85ead94c71 (diff) | |
download | openttd-4075b006a0f07099cd43cebb4d38b1e79e57acd6.tar.xz |
(svn r24617) -Change: Only bankrupt, if you have negative money considering you took max loan (ZxBiohazardZx)
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index b4fd7e7e7..0e7f99b18 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -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; |