hedgewars/uAIAmmoTests.pas
changeset 9790 0b4b9fda5bd4
parent 9768 08799c901a42
child 9844 8f5b48525a03
equal deleted inserted replaced
9789:4b7df6e96b78 9790:0b4b9fda5bd4
  1227 function TestDynamite(Me: PGear; Targ: TTarget; Level: LongInt; var ap: TAttackParams): LongInt;
  1227 function TestDynamite(Me: PGear; Targ: TTarget; Level: LongInt; var ap: TAttackParams): LongInt;
  1228 var valueResult: LongInt;
  1228 var valueResult: LongInt;
  1229     x, y, dx, dy: real;
  1229     x, y, dx, dy: real;
  1230     EX, EY, t: LongInt;
  1230     EX, EY, t: LongInt;
  1231 begin
  1231 begin
       
  1232 Targ:= Targ; // avoid compiler hint
       
  1233 
  1232 x:= hwFloat2Float(Me^.X) + hwSign(Me^.dX) * 7;
  1234 x:= hwFloat2Float(Me^.X) + hwSign(Me^.dX) * 7;
  1233 y:= hwFloat2Float(Me^.Y);
  1235 y:= hwFloat2Float(Me^.Y);
  1234 dx:= hwSign(Me^.dX) * 0.03;
  1236 dx:= hwSign(Me^.dX) * 0.03;
  1235 dy:= 0;
  1237 dy:= 0;
  1236 t:= 5000;
  1238 t:= 5000;