diff options
author | Gabda <gabda87@gmail.com> | 2019-01-05 14:22:07 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-08-17 21:45:20 +0100 |
commit | b870596f153c17d9aa915ca67b8f6414d73cb31f (patch) | |
tree | e1d321b8a5987a6a4511b61e160b73af890a332a /src/core | |
parent | d986f01d078553640528e2d334627bf552a60931 (diff) | |
download | openttd-b870596f153c17d9aa915ca67b8f6414d73cb31f.tar.xz |
Add #6887: Option to show zone inside local authority boundary of towns
Can be found at town information > local authority window
Layout for button is same as Graph Keys
Turn on/off for every town individually
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/kdtree.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/kdtree.hpp b/src/core/kdtree.hpp index c7f66ebff..59f3da810 100644 --- a/src/core/kdtree.hpp +++ b/src/core/kdtree.hpp @@ -373,6 +373,17 @@ public: } /** + * Clear the tree. + */ + void Clear() + { + this->nodes.clear(); + this->free_list.clear(); + this->unbalanced = 0; + return; + } + + /** * Reconstruct the tree with the same elements, letting it be fully balanced. */ void Rebuild() |