hedgewars/uGearsUtils.pas
changeset 12209 7e6362c0ba96
parent 12208 9a4831b23cd1
child 12289 c20fbf96b853
equal deleted inserted replaced
12208:9a4831b23cd1 12209:7e6362c0ba96
  1605             FrameTicks:= 200;
  1605             FrameTicks:= 200;
  1606             Scale:= hwFloat2Float(Gear^.Density * hwAbs(Gear^.dY) + hwAbs(Gear^.dX)) / 1.5;
  1606             Scale:= hwFloat2Float(Gear^.Density * hwAbs(Gear^.dY) + hwAbs(Gear^.dX)) / 1.5;
  1607             State:= ord(sprBoing)
  1607             State:= ord(sprBoing)
  1608             end;
  1608             end;
  1609     if Gear^.Kind = gtDuck then
  1609     if Gear^.Kind = gtDuck then
  1610         PlaySound(sndDuckDrop, true);
  1610         PlaySound(sndDuckDrop, true)
  1611     else
  1611     else
  1612         PlaySound(sndMelonImpact, true)
  1612         PlaySound(sndMelonImpact, true)
  1613 end;
  1613 end;
  1614 
  1614 
  1615 function IsHogLocal(HH: PHedgehog): boolean;
  1615 function IsHogLocal(HH: PHedgehog): boolean;