Skip to content

Commit

Permalink
Better support of removing fog from a single hex.
Browse files Browse the repository at this point in the history
Fixes bug #21643, although artists might find room for improvement.
  • Loading branch information
Ja-MiT committed Feb 23, 2014
1 parent 337fe65 commit 46b8725
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file added data/core/images/terrain/fog/fog-all.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/display.cpp
Expand Up @@ -1031,6 +1031,16 @@ std::vector<surface> display::get_fog_shroud_images(const map_location& loc, ima
}

if(start == 6) {
// Completely surrounded by fog or shroud. This might have
// a special graphic.
const std::string name = *image_prefix[v] + "-all.png";
if ( image::exists(name) ) {
names.push_back(name);
// Proceed to the next visibility (fog -> shroud -> clear).
continue;
}
// No special graphic found. We'll just combine some other images
// and hope it works out.
start = 0;
}

Expand Down

0 comments on commit 46b8725

Please sign in to comment.