# HG changeset patch # User unc0rr # Date 1157306494 0 # Node ID 340ded7cc336ab2271a66ab4014dd5e57683b533 # Parent 00e8d3693e90262aa0569f5a30f1d1bb6274a52c Fixed AI bug, introduced by previous changes diff -r 00e8d3693e90 -r 340ded7cc336 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);