diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-02-22 17:57:28 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-03-09 20:27:11 +0100 |
commit | e8d397e4ee71fa9aa952a16fc2f8431dfff57f7c (patch) | |
tree | 0a7a80605221db6fc524e4995628bcc024d66aed /src/waypoint.cpp | |
parent | d84b67e54d663a62a0a90ddf3fcc7c3f728826af (diff) | |
download | openttd-e8d397e4ee71fa9aa952a16fc2f8431dfff57f7c.tar.xz |
Codechange: Make a merged k-d tree index of all viewport signs
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r-- | src/waypoint.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp index 857f8ba87..8452ff618 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -15,6 +15,7 @@ #include "window_func.h" #include "newgrf_station.h" #include "waypoint_base.h" +#include "viewport_kdtree.h" #include "safeguards.h" @@ -54,4 +55,5 @@ Waypoint::~Waypoint() if (CleaningPool()) return; DeleteWindowById(WC_WAYPOINT_VIEW, this->index); RemoveOrderFromAllVehicles(OT_GOTO_WAYPOINT, this->index); + _viewport_sign_kdtree.Remove(ViewportSignKdtreeItem::MakeWaypoint(this->index)); } |