summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2019-02-18 21:14:52 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-03-09 20:27:11 +0100
commitd84b67e54d663a62a0a90ddf3fcc7c3f728826af (patch)
treed069c9179af354b434d8e85f09f1f311673e8bac /src/misc.cpp
parent7b56be0f3ac0a0257c10dc7ebe32c1fe95ea6253 (diff)
downloadopenttd-d84b67e54d663a62a0a90ddf3fcc7c3f728826af.tar.xz
Codechange: Make a k-d tree index of stations
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index c3130d85b..b1d480d82 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -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();