Make outer station catchment zoning use border highlight

This commit is contained in:
dP
2019-11-04 16:48:59 +03:00
parent 5a7f1e894a
commit b9e442a63a
5 changed files with 38 additions and 22 deletions

View File

@@ -39,8 +39,12 @@
StationPool _station_pool("Station");
INSTANTIATE_POOL_METHODS(Station)
Kdtree_StationXYFunc kd_station_func;
StationKdtree _station_kdtree(kd_station_func);
StationKdtree _station_kdtree(Kdtree_StationXYFunc);
uint16 Kdtree_StationXYFunc::operator()(StationID stid, int dim) const {
return (dim == 0) ? TileX(BaseStation::Get(stid)->xy) : TileY(BaseStation::Get(stid)->xy);
}
void RebuildStationKdtree()
{