Fix #8252: Remove duplicate functionality in screenshot.cpp

This commit is contained in:
Artin Alavi
2022-09-30 15:20:25 -07:00
committed by Michael Lutz
parent 721d98a7d0
commit c536bde19e
3 changed files with 20 additions and 47 deletions

View File

@@ -27,6 +27,15 @@ void ShowSmallMap();
void BuildLandLegend();
void BuildOwnerLegend();
/** Enum for how to include the heightmap pixels/colours in small map related functions */
enum class IncludeHeightmap {
Never, ///< Never include the heightmap
IfEnabled, ///< Only include the heightmap if its enabled in the gui by the player
Always ///< Always include the heightmap
};
uint32 GetSmallMapOwnerPixels(TileIndex tile, TileType t, IncludeHeightmap include_heightmap);
/** Structure for holding relevant data for legends in small map */
struct LegendAndColour {
uint8 colour; ///< Colour of the item on the map.