for unclear reasons, "share_view=yes" automatically set share_maps to "no"
So we also need to check share_view to decide if we share shroud info
This commit is contained in:
parent
bedfc70928
commit
a0f6180354
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ const std::vector<const team::shroud_map*>& team::ally_shroud(const std::vector<
|
|||
{
|
||||
if(ally_shroud_.empty()) {
|
||||
for(size_t i = 0; i < teams.size(); ++i) {
|
||||
if(!is_enemy(i + 1) && (&(teams[i]) == this || teams[i].share_maps())) {
|
||||
if(!is_enemy(i + 1) && (&(teams[i]) == this || teams[i].share_view() || teams[i].share_maps())) {
|
||||
ally_shroud_.push_back(&(teams[i].shroud_));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue