Skip to content

Commit

Permalink
Labels from players in your ignore list default to hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Aug 7, 2015
1 parent af3eae9 commit d657c30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/game_state.cpp
Expand Up @@ -175,6 +175,13 @@ void game_state::init(const int ticks, play_controller & pc)
{
build_team_stage_two(tb_ptr);
}
for(size_t i = 0; i < board_.teams_.size(); i++) {
// Labels from players in your ignore list default to hidden
if(preferences::is_ignored(board_.teams_[i].current_player())) {
std::string label_cat = "side:" + str_cast(i + 1);
board_.hidden_label_categories_ref().push_back(label_cat);
}
}
}

pathfind_manager_.reset(new pathfind::manager(level_));
Expand Down

0 comments on commit d657c30

Please sign in to comment.