hedgewars/uAIMisc.pas
changeset 13478 d3209e0caf12
parent 13476 0d27f0c21b71
child 13668 2b194214732d
--- a/hedgewars/uAIMisc.pas	Wed Jul 11 17:25:53 2018 +0200
+++ b/hedgewars/uAIMisc.pas	Wed Jul 11 18:13:52 2018 +0200
@@ -615,7 +615,7 @@
                 end
             end;
 
-if hadSkips and (rate = 0) then
+if hadSkips and (rate <= 0) then
     RealRateExplosion:= BadTurn
 else
     RealRateExplosion:= rate;
@@ -701,7 +701,7 @@
         else
             hadSkips:= true;
 
-if hadSkips and (rate = 0) then
+if hadSkips and (rate <= 0) then
     RateShove:= BadTurn
 else
     RateShove:= rate * 1024;
@@ -807,7 +807,7 @@
                 end
             end;
 
-if hadSkips and (rate = 0) then
+if hadSkips and (rate <= 0) then
     RateShotgun:= BadTurn
 else
     RateShotgun:= rate * 1024;
@@ -839,7 +839,7 @@
                     inc(rate, Score div 3 * friendlyfactor div 100)
             end;
 
-if hadSkips and (rate = 0) then
+if hadSkips and (rate <= 0) then
     RateHammer:= BadTurn
 else
     RateHammer:= rate * 1024;