Skip to content

Commit

Permalink
Change ID of Idle AI
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel authored and mattsc committed Mar 22, 2016
1 parent 4f710ea commit bcbba6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion data/ai/dev/idle_ai.cfg
@@ -1,6 +1,6 @@
#textdomain wesnoth-ai
[ai]
id=ai_idle
id=idle_ai
description=_"Multiplayer_AI^Dev AI: Idle AI" # wmllint: no spellcheck
#well, we can just fall back to idle ai. But we can just do nothing, and it will work (if no additional stages are brought in by other config sources - MP faction config, scenario config, era config, defaults, etc
[/ai]
4 changes: 0 additions & 4 deletions src/ai/configuration.cpp
Expand Up @@ -260,10 +260,6 @@ void configuration::expand_simplified_aspects(side_number side, config &cfg) {
if (aiparam.has_attribute("ai_algorithm")) {
if (algorithm.empty()) {
algorithm = aiparam["ai_algorithm"].str();
if (algorithm == "idle_ai") {
lg::wml_error() << "side " << side << " uses deprecated ai_algorithm=idle_ai; use ai_idle instead.\n";
algorithm = "ai_idle";
}
base_config = get_ai_config_for(algorithm);
} else if(algorithm != aiparam["ai_algorithm"]) {
lg::wml_error() << "side " << side << " has two [ai] tags with contradictory ai_algorithm - the first one will take precedence.\n";
Expand Down

0 comments on commit bcbba6d

Please sign in to comment.