(svn r21156) -Codechange: Introduce EconomyIsInRecession().
This commit is contained in:
@@ -497,7 +497,7 @@ static void TileLoop_Town(TileIndex tile)
|
||||
if (GB(r, 0, 8) < hs->population) {
|
||||
uint amt = GB(r, 0, 8) / 8 + 1;
|
||||
|
||||
if (_economy.fluct <= 0) amt = (amt + 1) >> 1;
|
||||
if (EconomyIsInRecession()) amt = (amt + 1) >> 1;
|
||||
t->new_max_pass += amt;
|
||||
t->new_act_pass += MoveGoodsToStation(CT_PASSENGERS, amt, ST_TOWN, t->index, stations.GetStations());
|
||||
}
|
||||
@@ -505,7 +505,7 @@ static void TileLoop_Town(TileIndex tile)
|
||||
if (GB(r, 8, 8) < hs->mail_generation) {
|
||||
uint amt = GB(r, 8, 8) / 8 + 1;
|
||||
|
||||
if (_economy.fluct <= 0) amt = (amt + 1) >> 1;
|
||||
if (EconomyIsInRecession()) amt = (amt + 1) >> 1;
|
||||
t->new_max_mail += amt;
|
||||
t->new_act_mail += MoveGoodsToStation(CT_MAIL, amt, ST_TOWN, t->index, stations.GetStations());
|
||||
}
|
||||
|
Reference in New Issue
Block a user