set a default value for density that shouldn't lead to div by 0 0.9.16
authorsheepluva
Sun, 18 Sep 2011 16:46:26 +0200
branch0.9.16
changeset 5958 f9e3033d929f
parent 5957 a6224655647c
child 5959 2e5182c5617a
set a default value for density that shouldn't lead to div by 0
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sat Sep 17 22:01:17 2011 +0400
+++ b/hedgewars/uGears.pas	Sun Sep 18 16:46:26 2011 +0200
@@ -224,6 +224,7 @@
 gear^.SoundChannel:= -1;
 gear^.ImpactSound:= sndNone;
 gear^.nImpactSounds:= 0;
+gear^.Density:= _1;
 // Define ammo association, if any.
 gear^.AmmoType:= GearKindAmmoTypeMap[Kind];
 if Ammoz[Gear^.AmmoType].Ammo.Propz and ammoprop_NeedTarget <> 0 then gear^.Z:= cHHZ+1