summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-06-27 18:26:50 +0000
committerfrosch <frosch@openttd.org>2009-06-27 18:26:50 +0000
commit812ad41f23b7ed52a161ed15b15a2af3a7edb41f (patch)
tree6758cbd7b2a75e135b4e360285445f1807d3b378 /src/unmovable_cmd.cpp
parente42deae3a98ead62bf2ab8e76f8e571a2baa951c (diff)
downloadopenttd-812ad41f23b7ed52a161ed15b15a2af3a7edb41f.tar.xz
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
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 3ddf393f3..ef2f89990 100644
--- a/src/unmovable_cmd.cpp
+++ b/src/unmovable_cmd.cpp
@@ -291,7 +291,7 @@ static CommandCost ClearTile_Unmovable(TileIndex tile, DoCommandFlag flags)
return CommandCost();
}
-static void AddAcceptedCargo_Unmovable(TileIndex tile, AcceptedCargo ac)
+static void AddAcceptedCargo_Unmovable(TileIndex tile, CargoArray acceptance)
{
if (!IsCompanyHQ(tile)) return;
@@ -303,13 +303,13 @@ static void AddAcceptedCargo_Unmovable(TileIndex tile, AcceptedCargo ac)
/* Top town building generates 10, so to make HQ interesting, the top
* type makes 20. */
- ac[CT_PASSENGERS] += max(1U, level);
+ acceptance[CT_PASSENGERS] += max(1U, level);
/* 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. */
- ac[CT_MAIL] += max(1U, level / 2);
+ acceptance[CT_MAIL] += max(1U, level / 2);
}