Mercurial > hg > openttd
diff src/economy.cpp @ 12852:c8f80b97fd61 draft
(svn r17342) -Fix: reset bankruptcy checks when bankruptcy has been averted and don't set an unused timeout with a magic number
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 01 Sep 2009 12:17:02 +0000 (2009-09-01) |
parents | a398faeb024e |
children | a1d8c582ef59 |
line wrap: on
line diff
--- a/src/economy.cpp +++ b/src/economy.cpp @@ -483,6 +483,7 @@ /* 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 @@ * 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; }