Changeset - r12842:6f82c6b66cdf
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-09-01 12:17:02
rubidium@openttd.org
(svn r17342) -Fix: reset bankruptcy checks when bankruptcy has been averted and don't set an unused timeout with a magic number
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -483,6 +483,7 @@ static void CompanyCheckBankrupt(Company
 
	/*  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
 
				 * 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;
 
			}
0 comments (0 inline, 0 general)