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

Function GetSmallMapLinkStatsPixels

src/smallmap_gui.cpp:524–527  ·  view source on GitHub ↗

* Return the colour a tile would be displayed with in the small map in mode "link stats". * * @param tile The tile of which we would like to get the colour. * @param t Effective tile type of the tile (see #SmallMapWindow::GetTileColours). * @return The colour of tile in the small map in mode "link stats" */

Source from the content-addressed store, hash-verified

522 * @return The colour of tile in the small map in mode "link stats"
523 */
524static inline uint32_t GetSmallMapLinkStatsPixels(TileIndex tile, TileType t)
525{
526 return _smallmap_show_heightmap ? GetSmallMapContoursPixels(tile, t) : GetSmallMapRoutesPixels(tile, t);
527}
528
529static const uint32_t _vegetation_clear_bits[] = {
530 MKCOLOUR_XXXX(PC_GRASS_LAND), ///< full grass

Callers 1

GetTileColoursMethod · 0.85

Calls 2

GetSmallMapRoutesPixelsFunction · 0.85

Tested by

no test coverage detected