hedgewars/uAI.pas
changeset 9003 896c6b21c87f
parent 8965 b4f10ff6ea90
child 9080 9b42757d7e71
--- a/hedgewars/uAI.pas	Thu May 16 17:33:25 2013 +0200
+++ b/hedgewars/uAI.pas	Fri May 17 00:06:01 2013 +0400
@@ -129,7 +129,7 @@
             Score:= AmmoTests[a].proc(Me, Targets.ar[i], BotLevel, ap);
 {$HINTS ON}
             if Actions.Score + Score > BestActions.Score then
-                if (BestActions.Score < 0) or (Actions.Score + Score > BestActions.Score + Byte(BotLevel) * 2048) then
+                if (BestActions.Score < 0) or (Actions.Score + Score > BestActions.Score + Byte(BotLevel - 1) * 2048) then
                     begin
                     BestActions:= Actions;
                     inc(BestActions.Score, Score);