# HG changeset patch
# User nemo
# Date 1346600699 14400
# Node ID 4cd85eebc54b04ba645dbb5a681b4d9153b415d3
# Parent  ffa26ebdf8ae0a7fdf306e5d5f5d64bbf6a47d3d
perf tweak

diff -r ffa26ebdf8ae -r 4cd85eebc54b 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;