Codechange: Make a k-d tree index of towns

This commit is contained in:
Niels Martin Hansen
2019-02-18 17:32:53 +01:00
parent d7522e5e8f
commit 7b56be0f3a
13 changed files with 74 additions and 37 deletions

View File

@@ -28,6 +28,7 @@ void RebuildTownCaches()
{
Town *town;
InitializeBuildingCounts();
RebuildTownKdtree();
/* Reset town population and num_houses */
FOR_ALL_TOWNS(town) {