Skip to content

Commit

Permalink
editor: fixed editor having two hex overlays drawing over each other
Browse files Browse the repository at this point in the history
images/editor/brush.png and images/misc/hover-hex.png were being drawn
on top of each other, resulting in an unsightly editor brush. Removed the
latter.
  • Loading branch information
Vultraz committed Feb 27, 2016
1 parent 0eb6d28 commit 7115b50
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/editor/editor_display.cpp
Expand Up @@ -122,10 +122,6 @@ void editor_display::draw_hex(const map_location& loc)
drawing_buffer_add(LAYER_SELECTED_HEX, loc, xpos, ypos,
image::get_texture(brush, image::SCALED_TO_HEX));
}
if (map().on_board(loc) && loc == mouseoverHex_) {
drawing_buffer_add(LAYER_MOUSEOVER_BOTTOM, loc, xpos, ypos,
image::get_texture("misc/hover-hex.png", image::SCALED_TO_HEX));
}
#else
if (map().in_selection(loc)) {
drawing_buffer_add(LAYER_FOG_SHROUD, loc, xpos, ypos,
Expand All @@ -137,10 +133,6 @@ void editor_display::draw_hex(const map_location& loc)
drawing_buffer_add(LAYER_SELECTED_HEX, loc, xpos, ypos,
image::get_image(brush, image::SCALED_TO_HEX));
}
if (map().on_board(loc) && loc == mouseoverHex_) {
drawing_buffer_add(LAYER_MOUSEOVER_BOTTOM, loc, xpos, ypos,
image::get_image("misc/hover-hex.png", image::SCALED_TO_HEX));
}
#endif
}
}
Expand Down

0 comments on commit 7115b50

Please sign in to comment.