* Initialise building counts for a town. * @param t Town cache to initialise. */
| 151 | * @param t Town cache to initialise. |
| 152 | */ |
| 153 | void InitializeBuildingCounts(Town *t) |
| 154 | { |
| 155 | t->cache.building_counts.id_count.clear(); |
| 156 | t->cache.building_counts.class_count.clear(); |
| 157 | t->cache.building_counts.id_count.resize(HouseSpec::Specs().size()); |
| 158 | t->cache.building_counts.class_count.resize(_class_mapping.size()); |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Initialise global building counts and all town building counts. |
no test coverage detected