minimap does not draw units if blindfolded
display.show_everything() returns false if blindfolded
This commit is contained in:
parent
491b1def74
commit
5e28b7c109
2 changed files with 2 additions and 2 deletions
|
@ -1905,7 +1905,7 @@ void display::draw_minimap()
|
|||
|
||||
void display::draw_minimap_units()
|
||||
{
|
||||
if (!preferences::minimap_draw_units()) return;
|
||||
if (!preferences::minimap_draw_units() || is_blindfolded()) return;
|
||||
|
||||
double xscaling = 1.0 * minimap_location_.w / get_map().w();
|
||||
double yscaling = 1.0 * minimap_location_.h / get_map().h();
|
||||
|
|
|
@ -66,7 +66,7 @@ public:
|
|||
virtual ~display();
|
||||
static display* get_singleton() { return singleton_ ;}
|
||||
|
||||
bool show_everything() const { return !viewpoint_; }
|
||||
bool show_everything() const { return !viewpoint_ && !is_blindfolded(); }
|
||||
|
||||
const std::vector<team>& get_teams() const {return *teams_;}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue