Codechange: Make a k-d tree index of towns
This commit is contained in:
@@ -536,6 +536,8 @@ bool AfterLoadGame()
|
||||
GamelogTestRevision();
|
||||
GamelogTestMode();
|
||||
|
||||
RebuildTownKdtree();
|
||||
|
||||
if (IsSavegameVersionBefore(SLV_98)) GamelogGRFAddList(_grfconfig);
|
||||
|
||||
if (IsSavegameVersionBefore(SLV_119)) {
|
||||
|
@@ -28,6 +28,7 @@ void RebuildTownCaches()
|
||||
{
|
||||
Town *town;
|
||||
InitializeBuildingCounts();
|
||||
RebuildTownKdtree();
|
||||
|
||||
/* Reset town population and num_houses */
|
||||
FOR_ALL_TOWNS(town) {
|
||||
|
Reference in New Issue
Block a user