mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codechange: Use functor for Kdtree's XYFunc. (#13074)
Kdtree uses a function pointer and incorrectly calls it a functor. The function pointer needs to be passed on instantiaton. Instead, use an actual functor. This simplifies instantiation.
This commit is contained in:
+1
-1
@@ -102,7 +102,7 @@
|
||||
Point _tile_fract_coords;
|
||||
|
||||
|
||||
ViewportSignKdtree _viewport_sign_kdtree(&Kdtree_ViewportSignXYFunc);
|
||||
ViewportSignKdtree _viewport_sign_kdtree{};
|
||||
static int _viewport_sign_maxwidth = 0;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user