implement blindfold by shroud

This commit is contained in:
Chris Beck 2014-02-23 18:38:22 -05:00
parent 2cf867aa37
commit 491b1def74

View file

@ -325,11 +325,11 @@ public:
/** 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));
}
/**