summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-09-20 17:44:33 +0000
committersmatz <smatz@openttd.org>2009-09-20 17:44:33 +0000
commit9225b3ba0315bf16322e15b4d71c3b2efc6d93a8 (patch)
tree0a35e6988310f33c2b662389f8cb65176222ceb7 /src/unmovable_cmd.cpp
parent2049d60e3460904e167fdd3e653b5e70fa4f0c9f (diff)
downloadopenttd-9225b3ba0315bf16322e15b4d71c3b2efc6d93a8.tar.xz
(svn r17589) -Codechange: rename town_acc to always_accepted
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r--src/unmovable_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp
index 98963a56f..3509217da 100644
--- a/src/unmovable_cmd.cpp
+++ b/src/unmovable_cmd.cpp
@@ -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);
}