Renamed redeploy_ai_from_location to switch_ai in [modify_side]
This commit is contained in:
parent
5e240143c5
commit
ebef313466
2 changed files with 5 additions and 9 deletions
|
@ -528,7 +528,7 @@
|
|||
[modify_side]
|
||||
side=3
|
||||
gold=10000
|
||||
redeploy_ai_from_location=$test_path_to_idle_ai
|
||||
switch_ai=$test_path_to_idle_ai
|
||||
[/modify_side]
|
||||
[/case]
|
||||
[else]
|
||||
|
@ -546,7 +546,7 @@
|
|||
first_time_only=no
|
||||
[modify_side]
|
||||
side=2
|
||||
redeploy_ai_from_location=$test_path_to_ai
|
||||
switch_ai=$test_path_to_ai
|
||||
[/modify_side]
|
||||
[message]
|
||||
speaker=narrator
|
||||
|
|
|
@ -800,10 +800,7 @@ namespace {
|
|||
* @todo also allow client to modify a side's colour if it is possible
|
||||
* to change it on the fly without causing visual glitches
|
||||
*/
|
||||
/**
|
||||
* @todo: rename this attribute and document it
|
||||
*/
|
||||
std::string redeploy_ai_from_location = cfg["redeploy_ai_from_location"];
|
||||
std::string switch_ai = cfg["switch_ai"];
|
||||
|
||||
assert(state_of_game != NULL);
|
||||
const int side_num = lexical_cast_default<int>(side,1);
|
||||
|
@ -864,9 +861,8 @@ namespace {
|
|||
(*teams)[team_index].set_ai_parameters(ai);
|
||||
}
|
||||
// Redeploy ai from location (this ignores current AI parameters)
|
||||
// @todo: this is probably SP-only and on human turn only
|
||||
if (!redeploy_ai_from_location.empty()) {
|
||||
ai_manager::add_ai_for_team_from_file(side_num,redeploy_ai_from_location);
|
||||
if (!switch_ai.empty()) {
|
||||
ai_manager::add_ai_for_team_from_file(side_num,switch_ai);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue