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:
Ali El Gariani 2008-02-06 02:46:03 +00:00
parent bedfc70928
commit a0f6180354

View file

@ -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_));
}
}