@@ -13,8 +13,8 @@
|
||||
#include "core/kdtree.hpp"
|
||||
#include "town.h"
|
||||
|
||||
inline uint32 Kdtree_TownXYFunc(TownID tid, int dim) { return (dim == 0) ? TileX(Town::Get(tid)->xy) : TileY(Town::Get(tid)->xy); }
|
||||
typedef Kdtree<TownID, decltype(&Kdtree_TownXYFunc), uint32, int> TownKdtree;
|
||||
inline uint32_t Kdtree_TownXYFunc(TownID tid, int dim) { return (dim == 0) ? TileX(Town::Get(tid)->xy) : TileY(Town::Get(tid)->xy); }
|
||||
typedef Kdtree<TownID, decltype(&Kdtree_TownXYFunc), uint32_t, int> TownKdtree;
|
||||
|
||||
extern TownKdtree _town_kdtree;
|
||||
extern TownKdtree _town_local_authority_kdtree;
|
||||
|
||||
Reference in New Issue
Block a user