fixed bug with ai_algorithm not taking effect...
...if it is put directly into [side], not in [ai]. thanks to Dragonking for spotting the buggy behavior
This commit is contained in:
parent
cdddfb5635
commit
84b3c234c8
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ team::team_info::team_info(const config& cfg) :
|
|||
config effective_ai_params;//Needed only to set some legacy stuff in team_info
|
||||
|
||||
ai_configuration::parse_side_config(cfg, ai_algorithm_type, global_ai_parameters, ai_parameters, default_ai_parameters, ai_memory, effective_ai_params );
|
||||
ai_manager::add_ai_for_team(side,global_ai_parameters["ai_algorithm"]);
|
||||
ai_manager::add_ai_for_team(side,ai_algorithm_type);
|
||||
|
||||
ai_manager::set_active_ai_effective_parameters_for_team(side,effective_ai_params);
|
||||
ai_manager::set_active_ai_global_parameters_for_team(side,global_ai_parameters);
|
||||
|
|
Loading…
Add table
Reference in a new issue