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/station.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/station.cpp')
-rw-r--r-- | src/station.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/station.cpp b/src/station.cpp index 5722fcdcf..3c50ef94f 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -14,6 +14,7 @@ #include "company_base.h" #include "roadveh.h" #include "viewport_func.h" +#include "viewport_kdtree.h" #include "date_func.h" #include "command_func.h" #include "news_func.h" @@ -163,6 +164,7 @@ Station::~Station() CargoPacket::InvalidateAllFrom(this->index); _station_kdtree.Remove(this->index); + _viewport_sign_kdtree.Remove(ViewportSignKdtreeItem::MakeStation(this->index)); } |