perf tweak
authornemo
Sun, 02 Sep 2012 11:44:59 -0400
changeset 7651 4cd85eebc54b
parent 7650 ffa26ebdf8ae
child 7652 db731c523653
perf tweak
hedgewars/uAIMisc.pas
--- a/hedgewars/uAIMisc.pas	Sun Sep 02 10:11:24 2012 -0400
+++ b/hedgewars/uAIMisc.pas	Sun Sep 02 11:44:59 2012 -0400
@@ -429,7 +429,7 @@
 
         if dmg > 0 then
             begin
-            if Flags and afTrackFall <> 0 then
+            if (Flags and afTrackFall <> 0) and (dmg < abs(Score)) then
                 begin
                 dX:= 0.005 * dmg + 0.01;
                 dY:= dX;