hedgewars/uGearsHandlersMess.pas
changeset 9723 31d10d684e90
parent 9721 1833dadcebf0
child 9724 b3fefde4cff7
equal deleted inserted replaced
9722:22dba2d8de93 9723:31d10d684e90
  2066     HHGear^.State := HHGear^.State or gstNoDamage;
  2066     HHGear^.State := HHGear^.State or gstNoDamage;
  2067     DeleteCI(HHGear);
  2067     DeleteCI(HHGear);
  2068 
  2068 
  2069     for i:= 0 to 3 do
  2069     for i:= 0 to 3 do
  2070         begin
  2070         begin
       
  2071         AddVisualGear(hwRound(Gear^.X) + hwSign(Gear^.dX) * (10 + 6 * i), hwRound(Gear^.Y) + 12 + Random(6), vgtDust);
  2071         AmmoShove(Gear, 30, 25);
  2072         AmmoShove(Gear, 30, 25);
  2072         Gear^.X := Gear^.X + Gear^.dX * 5
  2073         Gear^.X := Gear^.X + Gear^.dX * 5
  2073         end;
  2074         end;
  2074 
  2075 
  2075     HHGear^.State := (HHGear^.State and (not gstNoDamage)) or gstMoving;
  2076     HHGear^.State := (HHGear^.State and (not gstNoDamage)) or gstMoving;