refactor: use squared distance if possible
refactor: add some const-correctness to code
This commit is contained in:
parent
a49a4000c9
commit
4a35a87b25
24 changed files with 579 additions and 567 deletions
|
|
@ -109,7 +109,7 @@ void BotPractice::syncUpdate () {
|
|||
if (i == j || !vistab.visible (i, j) || !exists (team, i, j)) {
|
||||
continue;
|
||||
}
|
||||
auto actDamage = getDamage (team, i, j);
|
||||
const auto actDamage = getDamage (team, i, j);
|
||||
|
||||
if (actDamage > maxDamage) {
|
||||
maxDamage = actDamage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue