Skip to content

Commit

Permalink
RCA AI attack aspects: rename a variable
Browse files Browse the repository at this point in the history
Done to indicate that this is not a configurable value any more (and has not been in a long time).
  • Loading branch information
mattsc committed Nov 16, 2018
1 parent 0ff1d90 commit 3da48bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ai/default/aspect_attacks.cpp
Expand Up @@ -140,8 +140,8 @@ void aspect_attacks_base::do_attack_analysis(
// This function is called fairly frequently, so interact with the user here.

ai::manager::get_singleton().raise_user_interact();
const int default_attack_depth = 5;
if(cur_analysis.movements.size() >= std::size_t(default_attack_depth)) {
const int max_attack_depth = 5;
if(cur_analysis.movements.size() >= std::size_t(max_attack_depth)) {
return;
}
const gamemap &map_ = resources::gameboard->map();
Expand Down

0 comments on commit 3da48bb

Please sign in to comment.