Don't inject full RCA AI if ai_algorithm unspecified and a [stage] defined

This commit is contained in:
Celtic Minstrel 2016-03-22 13:41:32 -04:00
parent 6158ca73b9
commit c7d1bd6ae4

View file

@ -341,7 +341,7 @@ void configuration::expand_simplified_aspects(side_number side, config &cfg) {
parsed_config.add_child("aspect", p.second);
}
}
if (algorithm.empty()) {
if (algorithm.empty() && !parsed_config.has_child("stage")) {
base_config = get_ai_config_for("ai_default_rca");
}
BOOST_FOREACH(const config::any_child &child, parsed_config.all_children_range()) {