Second attempt on fixing the compiler warnings.
This commit is contained in:
parent
bee34271aa
commit
3cd351ba53
1 changed files with 3 additions and 2 deletions
|
@ -147,13 +147,14 @@ surface getMinimap(int w, int h, const gamemap &map, const team *vw)
|
|||
|
||||
} else {
|
||||
|
||||
SDL_Color col;
|
||||
SDL_Color col = int_to_color(game_config::team_rgb_range.find(terrain_info.id())->second.mid());
|
||||
bool first = true;
|
||||
const t_translation::t_list& underlying_terrains = map.underlying_union_terrain(terrain);
|
||||
BOOST_FOREACH(const t_translation::t_terrain& underlying_terrain, underlying_terrains) {
|
||||
|
||||
const std::string& terrain_id = map.get_terrain_info(underlying_terrain).id();
|
||||
SDL_Color tmp = fogged ? int_to_color(game_config::team_rgb_range.find(terrain_id)->second.min()) :
|
||||
SDL_Color tmp = fogged ?
|
||||
int_to_color(game_config::team_rgb_range.find(terrain_id)->second.min()) :
|
||||
int_to_color(game_config::team_rgb_range.find(terrain_id)->second.mid());
|
||||
|
||||
if (first) {
|
||||
|
|
Loading…
Add table
Reference in a new issue