hedgewars/uGearsUtils.pas
changeset 13572 a71e6856ffab
parent 13568 470982c05f7e
child 13597 f7cbf7d8298d
--- a/hedgewars/uGearsUtils.pas	Sun Jul 29 11:39:48 2018 -0400
+++ b/hedgewars/uGearsUtils.pas	Mon Jul 30 13:20:01 2018 +0200
@@ -1723,6 +1723,8 @@
 procedure AddBounceEffectForGear(Gear: PGear);
 var boing: PVisualGear;
 begin
+    if Gear^.Density < _0_01 then
+        exit;
     boing:= AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtStraightShot, 0, false, 1);
     if boing <> nil then
         with boing^ do