Skip to content

Commit

Permalink
Used display_context::get_team in a few places I missed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Apr 20, 2018
1 parent 4818312 commit e05b136
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/side_filter.cpp
Expand Up @@ -158,7 +158,7 @@ bool side_filter::match_internal(const team &t) const
const std::vector<int>& teams = enemy_filter_->get_teams();
if(teams.empty()) return false;
for(const int side : teams) {
if(!(fc_->get_disp_context().teams())[side - 1].is_enemy(t.side()))
if(!fc_->get_disp_context().get_team(side).is_enemy(t.side()))
return false;
}
}
Expand All @@ -170,7 +170,7 @@ bool side_filter::match_internal(const team &t) const
const std::vector<int>& teams = allied_filter_->get_teams();
if(teams.empty()) return false;
for(const int side : teams) {
if((fc_->get_disp_context().teams())[side - 1].is_enemy(t.side()))
if(fc_->get_disp_context().get_team(side).is_enemy(t.side()))
return false;
}
}
Expand All @@ -182,7 +182,7 @@ bool side_filter::match_internal(const team &t) const
const std::vector<int>& teams = has_enemy_filter_->get_teams();
bool found = false;
for(const int side : teams) {
if((fc_->get_disp_context().teams())[side - 1].is_enemy(t.side()))
if(fc_->get_disp_context().get_team(side).is_enemy(t.side()))
{
found = true;
break;
Expand All @@ -198,7 +198,7 @@ bool side_filter::match_internal(const team &t) const
const std::vector<int>& teams = has_ally_filter_->get_teams();
bool found = false;
for(const int side : teams) {
if(!(fc_->get_disp_context().teams())[side - 1].is_enemy(t.side()))
if(!fc_->get_disp_context().get_team(side).is_enemy(t.side()))
{
found = true;
break;
Expand Down

0 comments on commit e05b136

Please sign in to comment.