hedgewars/uAIMisc.pas
changeset 3407 dcc129c4352e
parent 3370 37f4f83fedb1
child 3697 d5b30d6373fc
equal deleted inserted replaced
3406:f4bdebced042 3407:dcc129c4352e
   244 end;
   244 end;
   245 
   245 
   246 function RateShove(Me: PGear; x, y, r, power: LongInt): LongInt;
   246 function RateShove(Me: PGear; x, y, r, power: LongInt): LongInt;
   247 var i, dmg, rate: LongInt;
   247 var i, dmg, rate: LongInt;
   248 begin
   248 begin
       
   249 Me:= Me; // avoid compiler hint
   249 rate:= 0;
   250 rate:= 0;
   250 for i:= 0 to Pred(Targets.Count) do
   251 for i:= 0 to Pred(Targets.Count) do
   251     with Targets.ar[i] do
   252     with Targets.ar[i] do
   252          begin
   253          begin
   253          dmg:= r - hwRound(DistanceI(Point.x - x, Point.y - y));
   254          dmg:= r - hwRound(DistanceI(Point.x - x, Point.y - y));