Skip to content

Commit

Permalink
Made [item]s get drawn behind village flags (fixes issue #1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
ln-zookeeper committed Jul 9, 2017
1 parent 658bb10 commit 126d435
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/display.cpp
Expand Up @@ -2541,8 +2541,6 @@ void display::draw_hex(const map_location& loc) {
drawing_buffer_add(LAYER_GRID_BOTTOM, loc, xpos, ypos,
image::get_image(grid_bottom, image::TOD_COLORED));
}
// village-control flags.
drawing_buffer_add(LAYER_TERRAIN_BG, loc, xpos, ypos, get_flag(loc));
}

if(!shrouded(loc)) {
Expand Down Expand Up @@ -2576,6 +2574,11 @@ void display::draw_hex(const map_location& loc) {
}
}

if(!shrouded(loc)) {
// village-control flags.
drawing_buffer_add(LAYER_TERRAIN_BG, loc, xpos, ypos, get_flag(loc));
}

// Draw the time-of-day mask on top of the terrain in the hex.
// tod may differ from tod if hex is illuminated.
const std::string& tod_hex_mask = tod.image_mask;
Expand Down

0 comments on commit 126d435

Please sign in to comment.