Use new highlight for single station coverage

This commit is contained in:
Pavel Stupnikov
2020-02-06 02:52:39 +03:00
parent 0aab21535c
commit e7f1df5454
7 changed files with 38 additions and 10 deletions

View File

@@ -1033,11 +1033,12 @@ const Town *_viewport_highlight_town; ///< Currently selected town for cov
*/
static TileHighlightType GetTileHighlightType(TileIndex t)
{
#if 0 // taken over by citymania highlight
if (_viewport_highlight_station != nullptr) {
if (IsTileType(t, MP_STATION) && GetStationIndex(t) == _viewport_highlight_station->index) return THT_WHITE;
if (_viewport_highlight_station->TileIsInCatchment(t)) return THT_BLUE;
}
#endif
if (_viewport_highlight_town != nullptr) {
if (IsTileType(t, MP_HOUSE)) {
if (GetTownIndex(t) == _viewport_highlight_town->index) {