hedgewars/uGears.pas
changeset 2985 d268a7fbb868
parent 2983 25b6b554c516
child 2987 3abaf01b4ce3
equal deleted inserted replaced
2984:f6834fc9fe7b 2985:d268a7fbb868
  1721 if (Mask and EXPLAllDamageInRadius) = 0 then
  1721 if (Mask and EXPLAllDamageInRadius) = 0 then
  1722     dmgRadius:= Radius shl 1
  1722     dmgRadius:= Radius shl 1
  1723 else
  1723 else
  1724     dmgRadius:= Radius;
  1724     dmgRadius:= Radius;
  1725 
  1725 
       
  1726 KickFlakes(dmgRadius, X, Y);
       
  1727 
  1726 Gear:= GearsList;
  1728 Gear:= GearsList;
  1727 while Gear <> nil do
  1729 while Gear <> nil do
  1728     begin
  1730     begin
  1729     dmg:= dmgRadius  + cHHRadius div 2 - hwRound(Distance(Gear^.X - int2hwFloat(X), Gear^.Y - int2hwFloat(Y)));
  1731     dmg:= dmgRadius  + cHHRadius div 2 - hwRound(Distance(Gear^.X - int2hwFloat(X), Gear^.Y - int2hwFloat(Y)));
  1730     if (dmg > 1) and
  1732     if (dmg > 1) and