Fix mortar's scoring
authorunc0rr
Fri, 17 May 2013 00:07:37 +0400
changeset 9005 15a6ed0bd074
parent 9003 896c6b21c87f
child 9008 e9d88f2522f4
Fix mortar's scoring
hedgewars/uAIAmmoTests.pas
--- a/hedgewars/uAIAmmoTests.pas	Fri May 17 00:06:01 2013 +0400
+++ b/hedgewars/uAIAmmoTests.pas	Fri May 17 00:07:37 2013 +0400
@@ -607,8 +607,8 @@
     if (EY < cWaterLine) and (dY >= 0) then
         begin
         Score:= RateExplosion(Me, EX, EY, 91);
-        if (Score = 0) and (Targ.Kind = gtHedgehog) and (Targ.Score > 0) then
-            if (dY > 0.15) then
+        if (Score = 0) then
+            if (dY > 0.15) and (Targ.Kind = gtHedgehog) and (Targ.Score > 0) then
                 Score:= - abs(Targ.Point.Y - EY) div 32
             else
                 Score:= BadTurn