fpc likes brackets
authornemo
Sun, 18 Nov 2018 12:21:03 -0500
changeset 14227 1d678dee55d1
parent 14226 545b85c0f2e3
child 14228 b01770d42517
fpc likes brackets
hedgewars/uAIAmmoTests.pas
--- 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);