Skip to content

Commit

Permalink
implement blindfold by shroud
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Feb 24, 2014
1 parent 2cf867a commit 491b1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display.hpp
Expand Up @@ -325,11 +325,11 @@ class display

/** Returns true if location (x,y) is covered in shroud. */
bool shrouded(const map_location& loc) const {
return viewpoint_ && viewpoint_->shrouded(loc);
return is_blindfolded() || (viewpoint_ && viewpoint_->shrouded(loc));
}
/** Returns true if location (x,y) is covered in fog. */
bool fogged(const map_location& loc) const {
return viewpoint_ && viewpoint_->fogged(loc);
return is_blindfolded() || (viewpoint_ && viewpoint_->fogged(loc));
}

/**
Expand Down

0 comments on commit 491b1de

Please sign in to comment.