Codechange: Make a k-d tree index of stations

This commit is contained in:
Niels Martin Hansen
2019-02-18 21:14:52 +01:00
parent 7b56be0f3a
commit d84b67e54d
14 changed files with 127 additions and 33 deletions

View File

@@ -28,6 +28,7 @@
#include "core/pool_type.hpp"
#include "game/game.hpp"
#include "linkgraph/linkgraphschedule.h"
#include "station_kdtree.h"
#include "town_kdtree.h"
#include "safeguards.h"
@@ -76,6 +77,7 @@ void InitializeGame(uint size_x, uint size_y, bool reset_date, bool reset_settin
LinkGraphSchedule::Clear();
PoolBase::Clean(PT_NORMAL);
RebuildStationKdtree();
RebuildTownKdtree();
ResetPersistentNewGRFData();