Skip to content

Commit

Permalink
Made the classic minimap color coding the default.
Browse files Browse the repository at this point in the history
  • Loading branch information
fendrin committed Jun 5, 2014
1 parent 706cb6d commit 22c0029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/display.cpp
Expand Up @@ -1922,7 +1922,7 @@ void display::draw_minimap_units()
int side = u->side();
SDL_Color col = team::get_minimap_color(side);

if (preferences::minimap_movement_coding()) {
if (!preferences::minimap_movement_coding()) {

if ((*teams_)[currentTeam_].is_enemy(side)) {
col = int_to_color(game_config::color_info(game_config::images::enemy_orb_color).rep());
Expand Down
3 changes: 2 additions & 1 deletion src/minimap.cpp
Expand Up @@ -49,6 +49,7 @@ surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::
const bool preferences_minimap_draw_terrain = preferences::minimap_draw_terrain();
const bool preferences_minimap_terrain_coding = preferences::minimap_terrain_coding();
const bool preferences_minimap_draw_villages = preferences::minimap_draw_villages();
const bool preferences_minimap_unit_coding = preferences::minimap_movement_coding();

const size_t map_width = map.w()*scale*3/4;
const size_t map_height = map.h()*scale;
Expand Down Expand Up @@ -239,7 +240,7 @@ surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::
if (!fogged) {
if (side > -1) {

if (!preferences::minimap_movement_coding() || !vw ) {
if (preferences_minimap_unit_coding || !vw ) {
col = team::get_minimap_color(side + 1);
} else {

Expand Down

0 comments on commit 22c0029

Please sign in to comment.