(svn r24619) -Change: Check for bankruptcy on a monthly basis (ZxBioHazardZx)

This commit is contained in:
planetmaker
2012-10-20 22:05:26 +00:00
parent b446780f01
commit f2e94237fc
7 changed files with 39 additions and 14 deletions

View File

@@ -2746,6 +2746,11 @@ bool AfterLoadGame()
/* Fix too high inflation rates */
if (_economy.inflation_prices > MAX_INFLATION) _economy.inflation_prices = MAX_INFLATION;
if (_economy.inflation_payment > MAX_INFLATION) _economy.inflation_payment = MAX_INFLATION;
/* We have to convert the quarters of bankruptcy into months of bankruptcy */
FOR_ALL_COMPANIES(c) {
c->months_of_bankruptcy = 3 * c->months_of_bankruptcy;
}
}
/* Road stops is 'only' updating some caches */