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

Function GetSmallMapVehiclesPixels

src/smallmap_gui.cpp:442–446  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

440 * @return The colour of tile in the small map in mode "Vehicles"
441 */
442static inline uint32_t GetSmallMapVehiclesPixels(TileIndex, TileType t)
443{
444 const SmallMapColourScheme *cs = &_heightmap_schemes[_settings_client.gui.smallmap_land_colour];
445 return ApplyMask(cs->default_colour, &_smallmap_vehicles_andor[t]);
446}
447
448/**
449 * Return the colour a tile would be displayed with in the small map in mode "Industries".

Callers 1

GetTileColoursMethod · 0.85

Calls 1

ApplyMaskFunction · 0.85

Tested by

no test coverage detected