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 @@
#include "core/pool_type.hpp"
#include "game/game.hpp"
#include "linkgraph/linkgraphschedule.h"
#include "town_kdtree.h"
#include "safeguards.h"
@@ -75,6 +76,8 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
LinkGraphSchedule::Clear();
PoolBase::Clean(PT_NORMAL);
RebuildTownKdtree();
ResetPersistentNewGRFData();
InitializeSound();