MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ClearViewportCatchment

Function ClearViewportCatchment

src/viewport.cpp:3697–3705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3695}
3696
3697static void ClearViewportCatchment()
3698{
3699 MarkCatchmentTilesDirty();
3700 _viewport_highlight_station = nullptr;
3701 _viewport_highlight_station_rect = nullptr;
3702 _viewport_highlight_waypoint = nullptr;
3703 _viewport_highlight_waypoint_rect = nullptr;
3704 _viewport_highlight_town = nullptr;
3705}
3706
3707/**
3708 * Select or deselect station for coverage area highlight.

Callers 5

SetViewportStationRectFunction · 0.85
SetViewportWaypointRectFunction · 0.85
SetViewportCatchmentTownFunction · 0.85

Calls 1

MarkCatchmentTilesDirtyFunction · 0.85

Tested by

no test coverage detected