Check nearby station/industry lists and catchments in CheckCaches

This commit is contained in:
Jonathan G Rennison
2019-05-22 18:33:30 +01:00
parent bf73535eed
commit bfff4571a2
3 changed files with 54 additions and 1 deletions

View File

@@ -62,6 +62,11 @@ struct OrthogonalTileArea {
{
return TILE_ADDXY(this->tile, this->w / 2, this->h / 2);
}
inline bool operator==(const OrthogonalTileArea &other) const
{
return std::tie(tile, w, h) == std::tie(other.tile, other.w, other.h);
}
};
/** Represents a diagonal tile area. */