Codechange: Make a k-d tree index of stations
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user