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

Function DrawTileHighlightType

src/viewport.cpp:1071–1080  ·  view source on GitHub ↗

* Draw tile highlight for coverage area highlight. * @param *ti TileInfo Tile that is being drawn * @param tht Highlight type to draw. */

Source from the content-addressed store, hash-verified

1069 * @param tht Highlight type to draw.
1070 */
1071static void DrawTileHighlightType(const TileInfo *ti, TileHighlightType tht)
1072{
1073 switch (tht) {
1074 default:
1075 case THT_NONE: break;
1076 case THT_WHITE: DrawTileSelectionRect(ti, PAL_NONE); break;
1077 case THT_BLUE: DrawTileSelectionRect(ti, PALETTE_SEL_TILE_BLUE); break;
1078 case THT_RED: DrawTileSelectionRect(ti, PALETTE_SEL_TILE_RED); break;
1079 }
1080}
1081
1082/**
1083 * Highlights tiles inside local authority of selected towns.

Callers 1

DrawTileSelectionFunction · 0.85

Calls 1

DrawTileSelectionRectFunction · 0.85

Tested by

no test coverage detected