@@ -34,20 +34,20 @@
|
||||
|
||||
/** Colour scheme of the smallmap. */
|
||||
struct SmallMapColourScheme {
|
||||
uint32 *height_colours; ///< Cached colours for each level in a map.
|
||||
const uint32 *height_colours_base; ///< Base table for determining the colours
|
||||
size_t colour_count; ///< The number of colours.
|
||||
uint32 default_colour; ///< Default colour of the land.
|
||||
uint32_t *height_colours; ///< Cached colours for each level in a map.
|
||||
const uint32_t *height_colours_base; ///< Base table for determining the colours
|
||||
size_t colour_count; ///< The number of colours.
|
||||
uint32_t default_colour; ///< Default colour of the land.
|
||||
};
|
||||
|
||||
extern SmallMapColourScheme _heightmap_schemes[];
|
||||
|
||||
struct AndOr {
|
||||
uint32 mor;
|
||||
uint32 mand;
|
||||
uint32_t mor;
|
||||
uint32_t mand;
|
||||
};
|
||||
|
||||
inline uint32 ApplyMask(uint32 colour, const AndOr *mask)
|
||||
inline uint32_t ApplyMask(uint32_t colour, const AndOr *mask)
|
||||
{
|
||||
return (colour & mask->mand) | mask->mor;
|
||||
}
|
||||
@@ -84,7 +84,7 @@ static const AndOr _smallmap_vehicles_andor[] = {
|
||||
{MKCOLOUR_0XX0(PC_BLACK ), MKCOLOUR_F00F},
|
||||
};
|
||||
|
||||
static const uint32 _vegetation_clear_bits[] = {
|
||||
static const uint32_t _vegetation_clear_bits[] = {
|
||||
MKCOLOUR_XXXX(PC_GRASS_LAND), ///< full grass
|
||||
MKCOLOUR_XXXX(PC_ROUGH_LAND), ///< rough land
|
||||
MKCOLOUR_XXXX(PC_GREY), ///< rocks
|
||||
|
||||
Reference in New Issue
Block a user