hedgewars/GSHandlers.inc
changeset 5221 632c42555a01
parent 5218 bc31676ae108
child 5228 b018f6117fc1
equal deleted inserted replaced
5220:76a2246f18f0 5221:632c42555a01
  1004 
  1004 
  1005 procedure doStepDEagleShot(Gear: PGear);
  1005 procedure doStepDEagleShot(Gear: PGear);
  1006 begin
  1006 begin
  1007     PlaySound(sndGun);
  1007     PlaySound(sndGun);
  1008     // add 2 initial steps to avoid problem with ammoshove related to calculation of radius + 1 radius as gear widths
  1008     // add 2 initial steps to avoid problem with ammoshove related to calculation of radius + 1 radius as gear widths
  1009     Gear^.X := Gear^.X + _2*Gear^.dX;  
  1009     Gear^.X := Gear^.X + Gear^.dX * 2;
  1010     Gear^.Y := Gear^.Y + _2*Gear^.dY;
  1010     Gear^.Y := Gear^.Y + Gear^.dY * 2;
  1011     Gear^.doStep := @doStepBulletWork
  1011     Gear^.doStep := @doStepBulletWork
  1012 end;
  1012 end;
  1013 
  1013 
  1014 procedure doStepSniperRifleShot(Gear: PGear);
  1014 procedure doStepSniperRifleShot(Gear: PGear);
  1015 var 
  1015 var