hedgewars/uAIMisc.pas
changeset 8970 35103b1a014c
parent 8969 ff121fd3d08f
child 8971 fcb29a13b1b1
equal deleted inserted replaced
8969:ff121fd3d08f 8970:35103b1a014c
   649                     else subrate:= RealRateExplosion(Me, round(pX), round(pY), 101, afErasesLand or (Flags and afTrackFall));
   649                     else subrate:= RealRateExplosion(Me, round(pX), round(pY), 101, afErasesLand or (Flags and afTrackFall));
   650                     if abs(subrate) > 2000 then inc(Rate,subrate div 1024);
   650                     if abs(subrate) > 2000 then inc(Rate,subrate div 1024);
   651                     end
   651                     end
   652                 end
   652                 end
   653             end;
   653             end;
   654 RateShove:= rate * 1024
   654 RateShove:= rate * 1024;
       
   655 ResetTargets
   655 end;
   656 end;
   656 
   657 
   657 function RateShotgun(Me: PGear; gdX, gdY: real; x, y: LongInt): LongInt;
   658 function RateShotgun(Me: PGear; gdX, gdY: real; x, y: LongInt): LongInt;
   658 var i, dmg, fallDmg, baseDmg, rate, subrate, erasure: LongInt;
   659 var i, dmg, fallDmg, baseDmg, rate, subrate, erasure: LongInt;
   659     pX, pY, dX, dY: real;
   660     pX, pY, dX, dY: real;