(svn r21156) -Codechange: Introduce EconomyIsInRecession().

This commit is contained in:
alberth
2010-11-13 09:45:20 +00:00
parent aea8274dba
commit 43f807a918
5 changed files with 15 additions and 6 deletions

View File

@@ -710,7 +710,7 @@ static void HandleEconomyFluctuations()
if (_settings_game.difficulty.economy != 0) {
/* When economy is Fluctuating, decrease counter */
_economy.fluct--;
} else if (_economy.fluct <= 0) {
} else if (EconomyIsInRecession()) {
/* When it's Steady and we are in recession, end it now */
_economy.fluct = -12;
} else {