summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_house.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index cb5ac90df..bef7b3797 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -69,12 +69,8 @@ void UpdateHousesAndTowns()
IncreaseBuildingCount(town, house_id);
if (IsHouseCompleted(t)) town->population += GetHouseSpecs(house_id)->population;
- /* Increase the number of houses for every house tile which
- * has a size bit set. Multi tile buildings have got only
- * one tile with such a bit set, so there is no problem. */
- if (GetHouseSpecs(GetHouseType(t))->building_flags & BUILDING_HAS_1_TILE) {
- town->num_houses++;
- }
+ /* Increase the number of houses for every house, but only once. */
+ if (GetHouseNorthPart(house_id) == 0) town->num_houses++;
}
/* Update the population and num_house dependant values */