summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-01 12:17:02 +0000
committerrubidium <rubidium@openttd.org>2009-09-01 12:17:02 +0000
commitdd3fa7f1d1570ce77984fe3813a1aee22122f0f8 (patch)
tree1290736088119d6316baf544f231254b57aaf8be /src
parent50e794849a5bc221915372a075a9169e9cb58733 (diff)
downloadopenttd-dd3fa7f1d1570ce77984fe3813a1aee22122f0f8.tar.xz
(svn r17342) -Fix: reset bankruptcy checks when bankruptcy has been averted and don't set an unused timeout with a magic number
Diffstat (limited to 'src')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 554aab30c..a4171f3df 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -483,6 +483,7 @@ static void CompanyCheckBankrupt(Company *c)
/* If the company has money again, it does not go bankrupt */
if (c->money >= 0) {
c->quarters_of_bankrupcy = 0;
+ c->bankrupt_asked = 0;
return;
}
@@ -535,7 +536,6 @@ static void CompanyCheckBankrupt(Company *c)
* he/she is no long in control of this company. However... when you
* join another company (cheat) the "unowned" company can bankrupt. */
c->bankrupt_asked = MAX_UVALUE(CompanyMask);
- c->bankrupt_timeout = 0x456;
free(cni);
break;
}