forked from mirror/OpenTTD
(svn r21156) -Codechange: Introduce EconomyIsInRecession().
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user