equal
deleted
inserted
replaced
67 |
67 |
68 town = GetTownByTile(t); |
68 town = GetTownByTile(t); |
69 IncreaseBuildingCount(town, house_id); |
69 IncreaseBuildingCount(town, house_id); |
70 if (IsHouseCompleted(t)) town->population += GetHouseSpecs(house_id)->population; |
70 if (IsHouseCompleted(t)) town->population += GetHouseSpecs(house_id)->population; |
71 |
71 |
72 /* Increase the number of houses for every house tile which |
72 /* Increase the number of houses for every house, but only once. */ |
73 * has a size bit set. Multi tile buildings have got only |
73 if (GetHouseNorthPart(house_id) == 0) town->num_houses++; |
74 * one tile with such a bit set, so there is no problem. */ |
|
75 if (GetHouseSpecs(GetHouseType(t))->building_flags & BUILDING_HAS_1_TILE) { |
|
76 town->num_houses++; |
|
77 } |
|
78 } |
74 } |
79 |
75 |
80 /* Update the population and num_house dependant values */ |
76 /* Update the population and num_house dependant values */ |
81 FOR_ALL_TOWNS(town) { |
77 FOR_ALL_TOWNS(town) { |
82 UpdateTownRadius(town); |
78 UpdateTownRadius(town); |