| 76 | TownKdtree _town_kdtree{}; |
| 77 | |
| 78 | void RebuildTownKdtree() |
| 79 | { |
| 80 | std::vector<TownID> townids; |
| 81 | for (const Town *town : Town::Iterate()) { |
| 82 | townids.push_back(town->index); |
| 83 | } |
| 84 | _town_kdtree.Build(townids.begin(), townids.end()); |
| 85 | } |
| 86 | |
| 87 | /** Set if a town is being generated. */ |
| 88 | static bool _generating_town = false; |
no test coverage detected