summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-09-07 07:39:08 +0000
committersmatz <smatz@openttd.org>2009-09-07 07:39:08 +0000
commit22e9d595591dab19e9d37a42f8d529570f582847 (patch)
tree066e3cee3770b84cb97671dd3bffa78f7df61882 /src/unmovable_cmd.cpp
parent9168ddd5507026b6346797f48bd0853091cbcb4e (diff)
downloadopenttd-22e9d595591dab19e9d37a42f8d529570f582847.tar.xz
(svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r--src/unmovable_cmd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp
index d3ddf69c9..f4cf786cd 100644
--- a/src/unmovable_cmd.cpp
+++ b/src/unmovable_cmd.cpp
@@ -301,7 +301,7 @@ static CommandCost ClearTile_Unmovable(TileIndex tile, DoCommandFlag flags)
return CommandCost();
}
-static void AddAcceptedCargo_Unmovable(TileIndex tile, CargoArray &acceptance)
+static void AddAcceptedCargo_Unmovable(TileIndex tile, CargoArray &acceptance, uint32 *town_acc)
{
if (!IsCompanyHQ(tile)) return;
@@ -314,12 +314,14 @@ static void AddAcceptedCargo_Unmovable(TileIndex tile, CargoArray &acceptance)
/* 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);
/* 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);
}