skip splashes for flakes
authornemo
Wed, 27 Jul 2011 09:06:51 -0400
changeset 5474 d5b392e02403
parent 5472 a724fe2d2ce0
child 5476 649d35cf95ff
skip splashes for flakes
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Wed Jul 27 08:55:30 2011 -0400
+++ b/hedgewars/GSHandlers.inc	Wed Jul 27 09:06:51 2011 -0400
@@ -156,7 +156,8 @@
                             AddCaption(Format(GetEventString(eidDrowned), Gear^.Hedgehog^.Name), cWhiteColor, capgrpMessage);
                             end
                         end
-                    else Gear^.doStep := @doStepDrowningGear
+                    else Gear^.doStep := @doStepDrowningGear;
+                    if Gear^.Kind = gtFlake then exit // skip splashes 
                 end;
             if ((not isSubmersible) and (Y < cWaterLine + 64 + Gear^.Radius)) or
                (isSubmersible and (Y < cWaterLine + 2 + Gear^.Radius) and ((CurAmmoGear^.Pos = 0) and (CurAmmoGear^.dY < _0_01))) then