(svn r17589) -Codechange: rename town_acc to always_accepted

This commit is contained in:
smatz
2009-09-20 17:44:33 +00:00
parent 2049d60e34
commit 9225b3ba03
9 changed files with 28 additions and 28 deletions

View File

@@ -305,7 +305,7 @@ static CommandCost ClearTile_Unmovable(TileIndex tile, DoCommandFlag flags)
return CommandCost();
}
static void AddAcceptedCargo_Unmovable(TileIndex tile, CargoArray &acceptance, uint32 *town_acc)
static void AddAcceptedCargo_Unmovable(TileIndex tile, CargoArray &acceptance, uint32 *always_accepted)
{
if (!IsCompanyHQ(tile)) return;
@@ -318,14 +318,14 @@ static void AddAcceptedCargo_Unmovable(TileIndex tile, CargoArray &acceptance, u
/* Top town building generates 10, so to make HQ interesting, the top
* type makes 20. */
acceptance[CT_PASSENGERS] += max(1U, level);
SetBit(*town_acc, CT_PASSENGERS);
SetBit(*always_accepted, CT_PASSENGERS);
/* Top town building generates 4, HQ can make up to 8. The
* proportion passengers:mail is different because such a huge
* commercial building generates unusually high amount of mail
* correspondence per physical visitor. */
acceptance[CT_MAIL] += max(1U, level / 2);
SetBit(*town_acc, CT_MAIL);
SetBit(*always_accepted, CT_MAIL);
}