Fixed AI bug, introduced by previous changes
authorunc0rr
Sun, 03 Sep 2006 18:01:34 +0000
changeset 139 340ded7cc336
parent 138 00e8d3693e90
child 140 50ccde437ea1
Fixed AI bug, introduced by previous changes
hedgewars/uAI.pas
--- a/hedgewars/uAI.pas	Sun Sep 03 15:39:53 2006 +0000
+++ b/hedgewars/uAI.pas	Sun Sep 03 18:01:34 2006 +0000
@@ -75,7 +75,7 @@
         if CanUseAmmo[a] then
            begin
            Score:= AmmoTests[a](Me, Targets.ar[i].Point, BotLevel, Time, Angle, Power, ExplX, ExplY, ExplR);
-           if Actions.Score + Score + Targets.ar[i].Score > BestActions.Score then
+           if Actions.Score + Score > BestActions.Score then
               begin
               BestActions:= Actions;
               inc(BestActions.Score, Score);