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

Function GetSmallMapIndustriesPixels

src/smallmap_gui.cpp:455–459  ·  view source on GitHub ↗

* Return the colour a tile would be displayed with in the small map in mode "Industries". * * @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 "Industries" */

Source from the content-addressed store, hash-verified

453 * @return The colour of tile in the small map in mode "Industries"
454 */
455static inline uint32_t GetSmallMapIndustriesPixels(TileIndex tile, TileType t)
456{
457 const SmallMapColourScheme *cs = &_heightmap_schemes[_settings_client.gui.smallmap_land_colour];
458 return ApplyMask(_smallmap_show_heightmap ? cs->height_colours[TileHeight(tile)] : cs->default_colour, &_smallmap_vehicles_andor[t]);
459}
460
461/**
462 * Return the colour a tile would be displayed with in the small map in mode "Routes".

Callers 1

GetTileColoursMethod · 0.85

Calls 2

ApplyMaskFunction · 0.85
TileHeightFunction · 0.85

Tested by

no test coverage detected