forked from mirror/OpenTTD
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:
@@ -68,7 +68,7 @@ TownPool _town_pool("Town");
|
||||
INSTANTIATE_POOL_METHODS(Town)
|
||||
|
||||
|
||||
TownKdtree _town_kdtree(&Kdtree_TownXYFunc);
|
||||
TownKdtree _town_kdtree{};
|
||||
|
||||
void RebuildTownKdtree()
|
||||
{
|
||||
|
Reference in New Issue
Block a user