diff options
author | alberth <alberth@openttd.org> | 2010-11-13 09:45:20 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-13 09:45:20 +0000 |
commit | 43f807a9189a1dde0260f40f8553bcc8050a3e1d (patch) | |
tree | 468331788816bd2a4b941bf10b20690921ed3dd1 /src/object_cmd.cpp | |
parent | aea8274dbad2da74eed8dba284b66b29be60a408 (diff) | |
download | openttd-43f807a9189a1dde0260f40f8553bcc8050a3e1d.tar.xz |
(svn r21156) -Codechange: Introduce EconomyIsInRecession().
Diffstat (limited to 'src/object_cmd.cpp')
-rw-r--r-- | src/object_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp index 4ad51d58f..0cf87a50e 100644 --- a/src/object_cmd.cpp +++ b/src/object_cmd.cpp @@ -508,7 +508,7 @@ static void TileLoop_Object(TileIndex tile) /* Top town buildings generate 250, so the top HQ type makes 256. */ if (GB(r, 0, 8) < (256 / 4 / (6 - level))) { uint amt = GB(r, 0, 8) / 8 / 4 + 1; - if (_economy.fluct <= 0) amt = (amt + 1) >> 1; + if (EconomyIsInRecession()) amt = (amt + 1) >> 1; MoveGoodsToStation(CT_PASSENGERS, amt, ST_HEADQUARTERS, GetTileOwner(tile), stations.GetStations()); } @@ -517,7 +517,7 @@ static void TileLoop_Object(TileIndex tile) * equations. */ if (GB(r, 8, 8) < (196 / 4 / (6 - level))) { uint amt = GB(r, 8, 8) / 8 / 4 + 1; - if (_economy.fluct <= 0) amt = (amt + 1) >> 1; + if (EconomyIsInRecession()) amt = (amt + 1) >> 1; MoveGoodsToStation(CT_MAIL, amt, ST_HEADQUARTERS, GetTileOwner(tile), stations.GetStations()); } } |