hedgewars/uAIAmmoTests.pas
changeset 14227 1d678dee55d1
parent 14226 545b85c0f2e3
child 14546 7e4862823649
child 14585 8736f3a0ff7f
--- a/hedgewars/uAIAmmoTests.pas	Sun Nov 18 16:57:43 2018 +0100
+++ b/hedgewars/uAIAmmoTests.pas	Sun Nov 18 12:21:03 2018 -0500
@@ -198,7 +198,7 @@
                  value := 1024 - Metric(Targ.Point.X, Targ.Point.Y, EX, EY) div 64
             else value := BadTurn;
 
-        if (valueResult < value) or (valueResult = value and Level < 3) then
+        if (valueResult < value) or ((valueResult = value) and (Level < 3)) then
             begin
             ap.Angle:= DxDy2AttackAnglef(Vx, Vy) + AIrndSign(random((Level - 1) * 9));
             ap.Power:= trunc(sqrt(r) * cMaxPower) - random((Level - 1) * 17 + 1);